QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#774013 | #9789. Donkey, Keep Watch | 雷神之怒 (Zhuocheng Lin, Peixuan Sun, Haikun Zhao)# | AC ✓ | 827ms | 343708kb | C++23 | 3.8kb | 2024-11-23 11:16:49 | 2024-11-23 11:16:50 |
Judging History
answer
#pragma GCC optimize(2)
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline","fast-math","unroll-loops","no-stack-protector")
#pragma GCC diagnostic error "-fwhole-program"
#pragma GCC diagnostic error "-fcse-skip-blocks"
#pragma GCC diagnostic error "-funsafe-loop-optimizations"
// MagicDark
#include <bits/stdc++.h>
#define debug cerr << "\33[32m[" << __LINE__ << "]\33[m "
#define SZ(x) ((int) x.size() - 1)
#define all(x) x.begin(), x.end()
#define ms(x, y) memset(x, y, sizeof x)
#define F(i, x, y) for (int i = (x); i <= (y); i++)
#define DF(i, x, y) for (int i = (x); i >= (y); i--)
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
template <typename T> T& chkmax(T& x, T y) {return x = max(x, y);}
template <typename T> T& chkmin(T& x, T y) {return x = min(x, y);}
template <typename T> T& read(T &x) {
x = 0; int f = 1; char c = getchar();
for (; !isdigit(c); c = getchar()) if (c == '-') f = - f;
for (; isdigit(c); c = getchar()) x = (x << 1) + (x << 3) + (c ^ 48);
return x *= f;
}
const int N = 1e6 + 10, M = 1.7e4 + 10, K = 5e6 + 10, MOD = 1e9 + 7, W = 14, H = 13;
inline int& add(int &x, ll y) {return x = (x + y) % MOD;}
int n, a[N], b[M], f[M], ans, pw3[W + 1], t[W];
struct xxj {
int info[W + 1], cnt;
bool ins(int x) {
DF(i, W, 0)
if (x & (1 << i)) {
if (!info[i]) {
cnt++;
info[i] = x;
return true;
}
x ^= info[i];
}
return false;
}
bool check(int x) {
DF(i, W, 0)
if (x & (1 << i)) {
if (!info[i]) return false;
x ^= info[i];
}
return true;
}
} g[K];
int s[K], pw2[N];
int fac[N], ifac[N], inv[N];
inline void binom(int x) {
fac[0] = ifac[0] = inv[1] = 1;
F(i, 2, x) inv[i] = (ll) (MOD - MOD / i) * inv[MOD % i] % MOD;
F(i, 1, x) fac[i] = (ll) fac[i - 1] * i % MOD, ifac[i] = (ll) ifac[i - 1] * inv[i] % MOD;
}
inline int C(int x, int y) {return x < y || y < 0 ? 0 : (ll) fac[x] * ifac[y] % MOD * ifac[x - y] % MOD;}
signed main() {
read(n);
binom(n);
pw2[0] = 1;
F(i, 1, n) b[read(a[i])]++, pw2[i] = 2 * pw2[i - 1] % MOD;
// F(i, 0, (1 << W) - 1)
// for (int j = 1; j <= b[i]; j += 2)
// add(ans, MOD - C(b[i], j));
pw3[0] = 1;
F(i, 1, W) pw3[i] = 3 * pw3[i - 1];
// debug << ans << endl;
DF(i, pw3[W] - 1, 0) {
bool flag = true, ff = false;
int h = 0, hh = 0, s2 = 0;
F(j, 0, H) {
t[j] = i / pw3[j] % 3, ff |= t[j] == 2;
if (!t[j]) h |= 1 << j;
if (t[j] == 2) s2++;
if (t[j] != 1) hh |= 1 << j;
}
F(j, 0, H) {
if (t[j] == 0) {
int a = i + pw3[j], b = i + pw3[j] * 2;
g[i] = g[a];
F(k, 0, W)
if (g[b].info[k]) g[i].ins(g[b].info[k]);
flag = false;
s[i] = s[a] + s[b];
break;
}
}
if (flag) {
int w = 0;
F(j, 0, H)
if (t[j] == 2) w |= 1 << j;
// if (b[w]) {
s[i] = b[w];
F(_, 1, s[i])
if (!g[i].ins(w | (1 << W))) break;
// }
// if (!h)
add(ans, MOD - 1);
}
// if (!ff) {
if (g[i].check(hh | (1 << W))) {
// F(j, 0, H) cout << t[j] << ' '; cout << '\n';
// debug << h << ' ' << pw2[s[i] - g[i].cnt] << endl;
if (s2 % 2 == 0) add(ans, pw2[s[i] - g[i].cnt]);
else add(ans, MOD - pw2[s[i] - g[i].cnt]);
}
// } else {
// if (g[i].check(h | (1 << W))) {
// F(j, 0, H) cout << t[j] << ' '; cout << '\n';
// debug << h << ' ' << pw2[s[i] - g[i].cnt] << endl;
// add(ans, MOD - pw2[s[i] - g[i].cnt]);
// }
// }
if (g[i].check(h)) {
// if (h) {
// // debug << h << " " << g[i].cnt << endl;
// // F(j, 0, H) cout << t[j] << ' '; cout << '\n';
// debug << pw2[s[i] - g[i].cnt] << endl;
// } else {
// // if (pw2[s[i] - g[i].cnt] > 1) debug << pw2[s[i] - g[i].cnt] - 1 << endl;
// }
add(ans, pw2[s[i] - g[i].cnt]);
}
}
cout << ans;
return 0;
}
/* why?
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 338ms
memory: 331512kb
input:
5 1 2 3 4 5
output:
11
result:
ok single line: '11'
Test #2:
score: 0
Accepted
time: 337ms
memory: 331088kb
input:
5 1 2 3 4 5
output:
11
result:
ok single line: '11'
Test #3:
score: 0
Accepted
time: 334ms
memory: 330584kb
input:
20 3971 14976 14101 11300 7778 11334 9343 10426 6020 9463 8775 10592 1618 2398 5391 5780 9051 14827 3459 8487
output:
268
result:
ok single line: '268'
Test #4:
score: 0
Accepted
time: 327ms
memory: 330344kb
input:
20 12332 70 9143 13250 13736 3775 311 9118 4226 2225 7504 6723 14595 8496 3166 11994 12085 2311 12993 1644
output:
258
result:
ok single line: '258'
Test #5:
score: 0
Accepted
time: 334ms
memory: 331044kb
input:
20 13233 14312 14406 12243 11731 4807 8411 629 8658 2568 12605 12308 2618 3269 11146 3694 249 8035 6544 9264
output:
262
result:
ok single line: '262'
Test #6:
score: 0
Accepted
time: 343ms
memory: 331420kb
input:
20 5185 1441 14968 432 2956 12293 1556 3861 11785 5770 5206 9141 354 8957 2019 12229 5098 7486 7274 9703
output:
267
result:
ok single line: '267'
Test #7:
score: 0
Accepted
time: 363ms
memory: 330668kb
input:
20 4755 1019 14372 10047 9890 2580 13285 3644 8628 14541 5653 4415 7829 8479 7094 456 302 4189 5123 11323
output:
268
result:
ok single line: '268'
Test #8:
score: 0
Accepted
time: 362ms
memory: 330228kb
input:
20 7483 5434 1383 10 8338 7257 12898 10349 3547 5856 6931 4976 11913 9252 10605 8997 14864 8070 12768 6404
output:
263
result:
ok single line: '263'
Test #9:
score: 0
Accepted
time: 331ms
memory: 331020kb
input:
20 12747 9320 13318 12159 9615 14198 1678 3744 13626 10374 3220 12562 7494 12623 3625 2950 8000 12778 999 9636
output:
276
result:
ok single line: '276'
Test #10:
score: 0
Accepted
time: 348ms
memory: 331268kb
input:
20 10048 11023 3993 6290 14049 7334 3984 11583 608 3739 2235 3298 13520 13366 13113 134 4721 10037 1414 3995
output:
271
result:
ok single line: '271'
Test #11:
score: 0
Accepted
time: 330ms
memory: 330568kb
input:
20 37 10009 7582 10101 4007 14380 189 9681 12998 3687 8133 8443 6263 1651 2203 7434 14136 9372 9500 11175
output:
258
result:
ok single line: '258'
Test #12:
score: 0
Accepted
time: 353ms
memory: 331848kb
input:
20 11536 9477 3287 2782 12070 5243 3056 5039 9196 7923 292 2437 8569 9942 5050 1786 9154 12134 134 2408
output:
272
result:
ok single line: '272'
Test #13:
score: 0
Accepted
time: 363ms
memory: 330860kb
input:
20 8261 1872 1257 11921 5880 415 14919 7081 9622 3244 9968 8463 8177 4866 8945 9435 12944 14059 2734 912
output:
274
result:
ok single line: '274'
Test #14:
score: 0
Accepted
time: 344ms
memory: 330948kb
input:
20 3304 2118 373 6276 1846 7169 7834 6198 4690 9553 11553 1436 5259 7441 2356 12569 11315 4546 3688 14427
output:
273
result:
ok single line: '273'
Test #15:
score: 0
Accepted
time: 324ms
memory: 331204kb
input:
20 976 6687 10549 11997 3324 4413 13494 11604 9178 2688 6787 1502 1458 6892 5870 13283 7536 11848 1225 5696
output:
259
result:
ok single line: '259'
Test #16:
score: 0
Accepted
time: 326ms
memory: 331368kb
input:
20 4345 14822 3589 9794 14487 7592 10535 2272 5847 737 2904 1330 14286 4493 12109 8819 11091 7127 8758 9910
output:
265
result:
ok single line: '265'
Test #17:
score: 0
Accepted
time: 341ms
memory: 331920kb
input:
20 3160 10090 10167 8111 465 10805 3101 4733 932 7054 14187 12883 9930 8978 1065 562 7732 8302 9081 13877
output:
262
result:
ok single line: '262'
Test #18:
score: 0
Accepted
time: 332ms
memory: 330564kb
input:
20 3751 2081 1540 6188 7140 2504 5941 9522 8841 11814 12480 4432 11777 11338 2477 5418 8528 14614 13488 14121
output:
272
result:
ok single line: '272'
Test #19:
score: 0
Accepted
time: 341ms
memory: 331928kb
input:
20 12325 12811 4763 11099 12054 4408 13244 9316 13855 8319 8936 2920 7458 3766 7841 4906 11151 12294 9198 14704
output:
266
result:
ok single line: '266'
Test #20:
score: 0
Accepted
time: 331ms
memory: 331316kb
input:
20 6340 6711 6986 3592 4538 10792 2573 8973 7226 5617 707 5408 14526 9273 3376 5411 11101 2561 2945 11977
output:
280
result:
ok single line: '280'
Test #21:
score: 0
Accepted
time: 344ms
memory: 331472kb
input:
20 13411 10313 1152 4474 4542 2400 10992 9327 5437 1804 12635 8078 9277 5004 8361 7220 2375 1038 2978 4614
output:
270
result:
ok single line: '270'
Test #22:
score: 0
Accepted
time: 344ms
memory: 331032kb
input:
20 11135 2993 5249 11264 14173 13465 6482 9613 3785 11864 9408 7341 11162 7408 3231 8639 5229 8462 8199 4447
output:
264
result:
ok single line: '264'
Test #23:
score: 0
Accepted
time: 521ms
memory: 343488kb
input:
1000000 2270 4290 1290 12571 1836 5131 3550 7433 1784 9845 11590 12801 2336 3486 14784 950 4882 288 12862 11837 12759 12918 5487 4777 11968 3804 8234 9792 10929 1224 8458 3486 2316 6034 6806 2253 6025 5218 5789 9819 12567 14395 6603 14869 5479 5250 3483 9839 2995 10387 13821 9470 11150 2584 1359 128...
output:
998914055
result:
ok single line: '998914055'
Test #24:
score: 0
Accepted
time: 644ms
memory: 342700kb
input:
1000000 8801 13717 2826 2660 474 8749 8782 12296 14292 7977 5074 12780 11646 12645 14466 108 2182 6571 428 14743 14171 7140 10650 10058 11519 1243 1835 4101 12516 9418 2529 157 7041 8706 10138 10737 9473 2017 607 14771 10616 6995 4244 1950 6547 3804 8841 9010 13798 6097 2711 14444 11803 11031 2045 5...
output:
648838797
result:
ok single line: '648838797'
Test #25:
score: 0
Accepted
time: 707ms
memory: 342692kb
input:
1000000 14077 684 9386 9808 8073 8503 3578 9978 8030 10892 3651 10405 13406 11258 8214 5501 8555 2282 5684 8654 4520 14832 12325 5873 14670 3188 12965 4291 780 3480 12023 5849 13531 12888 1549 11400 5905 6446 8473 9142 4151 3070 2273 47 3128 6552 13234 3728 1822 58 8919 8140 14409 12394 13675 8694 8...
output:
327272877
result:
ok single line: '327272877'
Test #26:
score: 0
Accepted
time: 827ms
memory: 342080kb
input:
1000000 13510 7301 5635 812 4308 10997 910 14660 4236 4143 945 3348 14933 797 9406 1546 4329 13469 13716 2091 6913 12889 2304 8689 4596 3986 9235 3857 10574 13578 8247 2267 14618 5327 6919 6802 6470 4524 9260 1069 6093 2328 11243 13191 4454 12247 673 12673 11786 13786 14101 13385 13801 1640 10469 41...
output:
139372378
result:
ok single line: '139372378'
Test #27:
score: 0
Accepted
time: 684ms
memory: 341672kb
input:
1000000 2472 13393 3035 10911 6105 5322 2402 8330 5518 12234 8072 9149 5111 5356 7139 11103 1787 11770 13503 5964 9318 12213 12481 13894 1926 9915 14455 12344 5953 4164 5241 5730 1379 4274 4888 13203 2028 6202 1292 6397 6410 14035 4144 6894 6173 9478 9620 191 14378 12918 8300 6032 9968 86 6483 7482 ...
output:
948632227
result:
ok single line: '948632227'
Test #28:
score: 0
Accepted
time: 419ms
memory: 342300kb
input:
1000000 5809 7286 4246 11612 1786 5314 8549 3216 12606 8265 10425 1678 13354 3481 9177 5314 14786 4347 14649 14424 13834 8549 5037 8028 4282 13198 3710 6096 14178 12196 11216 12348 8105 10863 7767 13143 2169 12835 661 12790 9177 13534 8147 3216 10051 11375 3290 8255 9684 7402 6140 14760 9219 10206 4...
output:
134991910
result:
ok single line: '134991910'
Test #29:
score: 0
Accepted
time: 821ms
memory: 343608kb
input:
1000000 11408 12243 8773 1775 14354 9622 13369 4197 5834 5427 5772 9660 3496 14693 3916 8587 13609 3198 11158 581 14360 3540 8617 2268 5407 7802 6177 14648 3443 9818 5649 4510 3016 192 10580 4576 13963 6443 5267 3300 13509 11100 2969 9862 12106 7077 2376 11030 10326 2987 10751 12323 2799 3863 252 10...
output:
567120262
result:
ok single line: '567120262'
Test #30:
score: 0
Accepted
time: 811ms
memory: 342444kb
input:
1000000 1407 7094 5720 7926 14895 2560 11910 4754 7566 8048 1196 3214 7604 12322 14381 14342 9095 13940 394 8138 9033 11338 3039 11230 11583 7030 930 14130 10456 6829 13160 12530 2661 6943 5230 10014 8311 5979 9371 2769 14804 14933 2502 13519 6917 371 4391 262 14013 13289 12328 11247 13689 9507 3512...
output:
7173166
result:
ok single line: '7173166'
Test #31:
score: 0
Accepted
time: 781ms
memory: 343016kb
input:
1000000 2537 13761 8671 8849 5295 13628 13958 9802 4828 11732 7855 6797 12077 4699 290 13758 9355 13759 5604 9613 8671 7546 7402 1725 14020 6649 4002 5014 9767 13920 12494 10765 6579 3834 2806 75 5348 7264 8243 2933 11687 795 9802 13463 5282 5333 10698 6341 13170 1465 6999 7402 3609 14338 12621 2403...
output:
611086677
result:
ok single line: '611086677'
Test #32:
score: 0
Accepted
time: 625ms
memory: 343616kb
input:
1000000 2721 5362 2736 11617 9422 5037 12312 14240 12248 7023 4845 14396 4136 9948 3266 3015 6250 14285 10648 6636 13216 13163 11880 9202 2004 7332 10397 14929 8306 8389 1018 10640 7633 1300 3854 2133 10877 9911 6168 3441 13815 10862 796 10165 2444 7022 7735 10049 13612 7084 963 11009 8369 7857 1251...
output:
61726479
result:
ok single line: '61726479'
Test #33:
score: 0
Accepted
time: 793ms
memory: 343292kb
input:
1000000 35 3350 11957 1787 12843 81 986 3507 262 1496 7514 7894 9499 6922 4860 14003 2971 8854 4780 4584 11353 1077 14616 12188 2028 835 4254 4819 4689 6209 848 14387 8224 2627 6405 5382 4296 11030 10576 8017 13385 2308 4850 9504 5100 14023 8937 6689 3243 11556 13254 2943 14666 226 9453 4346 8835 14...
output:
139306275
result:
ok single line: '139306275'
Test #34:
score: 0
Accepted
time: 759ms
memory: 342848kb
input:
1000000 3626 4724 4677 1527 5073 4591 6807 5849 6763 1553 3904 1030 7548 6727 949 5909 5831 8486 14293 5713 8515 13887 11887 7256 14022 5968 8538 828 4356 11456 12497 13652 5976 12080 9321 3229 11476 4924 14636 11138 1955 5095 9113 10580 14904 10063 9812 1022 12808 3556 10429 6863 431 5519 3225 3139...
output:
577633210
result:
ok single line: '577633210'
Test #35:
score: 0
Accepted
time: 656ms
memory: 341992kb
input:
1000000 9649 4549 7197 1682 8860 898 10591 7666 3392 10960 6945 9602 3054 14755 14363 1387 11924 14420 5805 738 11553 4360 11813 5010 10158 13821 7172 5907 9188 8951 5510 13678 2056 1297 3990 10628 1271 2279 12220 6833 12178 11112 369 7282 6220 5506 1984 541 12418 12035 11455 14866 4126 12740 4202 6...
output:
563119224
result:
ok single line: '563119224'
Test #36:
score: 0
Accepted
time: 777ms
memory: 342196kb
input:
1000000 12512 1479 6769 5591 11354 6092 9521 2464 1252 5242 4420 9238 9057 4207 11955 144 6994 6724 479 5105 14953 10367 1521 542 10372 2338 4480 6171 1118 9426 2310 4668 6233 8424 3990 3938 130 8287 10343 5692 10859 6701 6149 65 786 3360 14987 1342 14045 8222 5061 551 8088 1335 5401 8217 8475 8426 ...
output:
80921270
result:
ok single line: '80921270'
Test #37:
score: 0
Accepted
time: 650ms
memory: 341776kb
input:
1000000 1913 14017 14907 171 4588 4497 4390 9512 11722 6367 14144 14644 2253 7568 11255 3545 6237 835 9573 6508 3284 12757 2439 13914 3847 11565 5410 974 12108 5373 1534 9500 11469 10230 1186 13681 9169 14304 10245 3097 5539 3365 12357 2333 10212 7299 8636 450 4612 1381 7067 985 8914 14854 1032 1491...
output:
344116209
result:
ok single line: '344116209'
Test #38:
score: 0
Accepted
time: 804ms
memory: 343464kb
input:
1000000 422 1997 1449 2090 13561 3409 14015 11705 1531 7465 10793 6021 6600 2434 14333 2897 8358 325 11161 10062 6164 8756 1018 5748 12830 11221 12110 6468 9522 8464 14500 12843 2902 2639 7620 12379 2311 13810 14510 2024 9557 5844 5979 4510 8116 13481 9599 4003 2178 7219 12780 14238 4170 1710 11722 ...
output:
940301209
result:
ok single line: '940301209'
Test #39:
score: 0
Accepted
time: 779ms
memory: 342024kb
input:
1000000 3632 9123 11898 2252 4336 14337 10003 8468 3097 12368 10157 7990 8784 12190 8681 672 14868 7750 6973 2382 14588 12003 5272 13450 76 9272 4579 10476 10217 11588 8334 10630 3801 11479 5428 14649 9978 13781 13483 13424 10184 8080 12030 11403 7147 14317 6732 8901 7580 3147 7361 9155 10807 7151 8...
output:
103415370
result:
ok single line: '103415370'
Test #40:
score: 0
Accepted
time: 386ms
memory: 341636kb
input:
1000000 1542 3659 9445 14927 1501 9445 10637 6974 1006 162 12301 13275 3506 12116 11005 7641 8146 661 13275 7047 1906 11483 13874 3083 8665 3659 1006 1111 14247 10829 906 12174 8581 9659 10829 6974 12761 11683 4213 6750 6596 12761 4482 2993 3323 11691 12174 14369 6596 2969 14114 2969 3245 3506 11691...
output:
883460072
result:
ok single line: '883460072'
Test #41:
score: 0
Accepted
time: 740ms
memory: 343392kb
input:
1000000 5793 1084 14689 11325 14243 8575 9286 11608 14147 9646 3539 11460 9593 3153 12755 1533 4065 9866 4893 2343 253 13185 14878 13066 8019 495 5067 4856 6245 3554 5018 11244 8596 10106 988 7371 3180 1514 4492 2577 5008 13025 4438 5750 12163 13435 7210 139 9426 6406 7205 6254 366 211 2386 5011 996...
output:
523714496
result:
ok single line: '523714496'
Test #42:
score: 0
Accepted
time: 807ms
memory: 343596kb
input:
1000000 2438 8435 11729 9216 6513 9379 2755 4136 12177 9418 3867 12702 11335 4056 967 11299 2783 14274 11480 2434 187 9731 4502 20 8091 5790 2304 1546 8080 13106 3689 6997 13307 8732 2509 5928 5842 2659 2793 1924 9674 4664 10772 14522 9988 1111 2887 5220 3063 12061 14916 10652 11075 14699 7641 3009 ...
output:
188399792
result:
ok single line: '188399792'
Test #43:
score: 0
Accepted
time: 367ms
memory: 343696kb
input:
1000000 2539 8876 13825 3960 1986 10943 12502 1168 3030 3030 682 12013 4257 10458 9394 806 12408 11288 1386 9244 9267 9287 10212 10351 2460 6108 11989 7386 3636 1876 8876 661 11664 6646 13825 14166 10351 5029 5448 9165 7380 9165 2358 4257 237 10689 2240 14693 7380 4871 8865 6781 12436 9666 3960 1418...
output:
885089450
result:
ok single line: '885089450'
Test #44:
score: 0
Accepted
time: 590ms
memory: 342560kb
input:
1000000 6015 6355 7368 14874 10967 14585 8607 13657 6778 13901 14473 6860 10751 1669 8094 5567 9678 4886 10778 3042 2799 8796 4374 1206 9876 6327 94 10426 3854 7708 11512 9174 14422 11174 9958 2036 14114 14738 9151 14811 12486 2372 14830 162 12013 8510 948 7869 8499 809 4290 12136 1507 6794 11735 37...
output:
390015403
result:
ok single line: '390015403'
Test #45:
score: 0
Accepted
time: 786ms
memory: 342832kb
input:
1000000 11445 2212 3344 12721 5109 13698 10356 11612 5496 12890 9460 5130 12554 9265 3744 4114 302 7681 12531 12522 4288 9335 2954 730 7217 7227 6531 3615 10959 3516 11195 1060 10855 11727 7500 7300 1643 4093 10077 8360 14733 4044 11916 5339 9861 4480 12231 4333 13815 3994 14701 13842 924 14296 1098...
output:
314778408
result:
ok single line: '314778408'
Test #46:
score: 0
Accepted
time: 735ms
memory: 342148kb
input:
1000000 1778 9972 535 6236 7008 2726 11879 14584 2273 13276 2326 8584 834 13450 6851 2564 1140 8642 9195 14796 12498 6286 1699 8611 12792 5327 2558 9091 7379 9035 14987 14823 11918 12298 958 8461 2875 8632 11481 10847 7696 3975 7001 1037 13329 4402 1644 4239 1562 3002 4402 4996 1132 2948 5290 4863 7...
output:
59485379
result:
ok single line: '59485379'
Test #47:
score: 0
Accepted
time: 817ms
memory: 342644kb
input:
1000000 3547 1085 9012 12766 2139 11915 7818 9694 3713 10599 1777 3082 10228 7910 2100 8480 2837 7112 11299 14863 6899 2234 14740 9052 2748 14162 12224 5330 8343 1177 3547 4597 822 14585 4444 11198 12086 11998 10786 4737 2306 6348 1572 12693 13947 10912 6514 5699 11519 10655 1281 5418 561 447 6997 8...
output:
464277252
result:
ok single line: '464277252'
Test #48:
score: 0
Accepted
time: 674ms
memory: 342460kb
input:
1000000 8039 13555 253 14218 12572 5605 5900 948 12308 9265 3515 8693 6000 12485 12132 8278 2362 11427 8581 3687 9477 13420 3579 14766 14154 7157 10870 2892 13664 6329 9560 5398 11076 6864 1041 9697 4063 5770 5324 8042 13607 45 12572 14569 11853 14761 11386 4128 7855 8890 12310 14680 12097 5443 571 ...
output:
470615186
result:
ok single line: '470615186'
Test #49:
score: 0
Accepted
time: 785ms
memory: 343164kb
input:
1000000 14300 9298 7611 10041 6766 2003 127 4816 5547 10618 14245 2686 11822 8353 12130 9585 7644 7342 4098 4079 2506 8832 4061 3280 4132 12999 12530 13464 10343 1351 283 11255 6472 5304 7126 6698 6876 11725 10230 12107 6072 9076 9331 7389 483 2153 44 10781 3161 7192 8479 6105 7514 5564 373 8567 113...
output:
601220700
result:
ok single line: '601220700'
Test #50:
score: 0
Accepted
time: 725ms
memory: 341720kb
input:
1000000 13776 1782 2810 4219 4276 14935 12447 742 1294 5998 11856 1672 4437 3428 12389 13931 2604 1 10042 6658 399 5897 7218 3840 11470 4805 12999 13465 5621 616 7960 4934 10406 9874 11433 12708 11380 6404 614 7245 2306 677 14366 10191 1317 5535 13699 6694 7953 6890 257 851 14906 746 14538 8232 1479...
output:
447712432
result:
ok single line: '447712432'
Test #51:
score: 0
Accepted
time: 791ms
memory: 343708kb
input:
1000000 10715 2251 653 7893 11953 13782 1536 2433 1196 3826 903 11791 9062 7181 11013 802 9585 8933 2371 3568 7214 13261 4870 6746 10950 6052 3428 212 7851 4626 2004 13767 6953 6878 14319 854 1379 9705 4775 13183 4 2220 11994 11776 5476 1309 9831 6098 1063 10756 4679 4616 4717 6890 4700 13127 8248 2...
output:
652000388
result:
ok single line: '652000388'
Test #52:
score: 0
Accepted
time: 750ms
memory: 342644kb
input:
1000000 12157 6793 10422 6467 8144 11298 1774 11023 5192 12927 3200 2514 8336 1152 1053 5306 12722 11483 1605 7932 8409 593 5485 9015 8722 13048 12512 2841 9983 2320 9793 1083 9695 4905 8833 10843 6930 11582 10828 1764 14787 10094 602 12233 7272 7915 8753 4259 12565 12079 10973 6729 6176 8440 14003 ...
output:
20510494
result:
ok single line: '20510494'
Test #53:
score: 0
Accepted
time: 667ms
memory: 341752kb
input:
1000000 5291 10897 4361 3235 9655 10157 7904 9039 4919 12750 9857 13753 8206 8627 11257 12761 10081 2278 4897 1341 4926 7454 6530 903 7494 3767 1092 5401 14390 1197 11274 10721 9626 10886 1949 14300 2395 7990 12141 14256 5257 12459 12727 10080 8672 9525 12750 3277 5651 7799 14179 9059 4361 6686 372 ...
output:
808822593
result:
ok single line: '808822593'
Test #54:
score: 0
Accepted
time: 715ms
memory: 343608kb
input:
1000000 13429 11603 4275 5733 8779 7432 4237 5632 1990 12479 4135 3284 785 5460 8741 13728 13621 14256 1834 950 7168 6742 7276 14925 5783 7967 10957 10904 11211 3855 10172 9735 7706 14998 10524 4029 1443 1601 14394 2538 14939 4020 13592 12047 4644 12819 13349 850 13596 12311 4660 4198 11623 3512 770...
output:
641673067
result:
ok single line: '641673067'
Test #55:
score: 0
Accepted
time: 787ms
memory: 342772kb
input:
1000000 1987 185 14671 6738 5264 6376 14427 7702 3940 11149 11244 510 10479 14786 8115 7532 8819 11574 11638 1814 13419 2048 2648 10555 3955 5507 12694 9182 10847 11803 5822 11449 12903 4848 2912 9441 9322 948 26 6241 8025 6308 2051 2473 448 7166 4616 12650 9903 1791 5808 14199 13569 12562 448 14910...
output:
929213796
result:
ok single line: '929213796'
Test #56:
score: 0
Accepted
time: 797ms
memory: 342616kb
input:
1000000 8442 233 1103 10501 978 12241 10406 5146 157 11392 12391 3591 1682 10477 13936 3255 877 2783 3138 11728 7035 14214 10341 7833 9517 13409 3180 1742 4310 10840 13506 12202 13045 8894 22 7288 7465 4946 13012 11144 5614 4047 2380 10511 2598 1868 13615 14838 231 7723 4012 6621 14441 6445 11512 23...
output:
163724392
result:
ok single line: '163724392'
Test #57:
score: 0
Accepted
time: 768ms
memory: 342292kb
input:
1000000 14550 13279 7041 8112 11425 4162 11271 7622 10405 317 2808 6621 8524 3678 14009 7149 2632 5642 446 11025 6940 465 11378 8531 14938 3912 14501 13784 1026 8788 2439 10967 9943 7991 1762 13548 11409 6482 9845 14967 14169 11977 3794 10069 11911 4785 8980 10405 1775 146 5862 1583 2254 12197 9297 ...
output:
237298211
result:
ok single line: '237298211'
Test #58:
score: 0
Accepted
time: 776ms
memory: 343112kb
input:
1000000 11525 2651 5980 3043 11461 13754 6845 13541 6095 4944 4724 5155 8395 4710 12582 4461 1235 8021 1921 1509 10187 7039 10835 8988 2200 5420 12403 3585 1355 4600 8657 8347 1399 14376 10563 8488 772 216 8627 10519 10425 3582 8076 8776 3832 4110 11236 11321 8377 3937 5165 11920 4973 1705 6629 1099...
output:
668845718
result:
ok single line: '668845718'
Test #59:
score: 0
Accepted
time: 718ms
memory: 343304kb
input:
1000000 1530 5780 13802 11604 7987 12909 1256 10401 10610 457 14308 9792 8665 10915 5407 5037 7950 672 1899 4717 12584 567 12984 13930 7551 7164 14257 1537 14075 8197 9346 4438 9987 2231 12984 227 12554 4179 4137 3197 169 3560 12163 4852 14862 2389 9191 5637 12246 14977 7932 12184 6008 13802 2318 10...
output:
902317503
result:
ok single line: '902317503'
Test #60:
score: 0
Accepted
time: 777ms
memory: 342252kb
input:
1000000 2070 13266 4511 11473 1939 5269 1288 11681 1413 7561 14441 14747 2209 4654 10803 3167 6620 1887 8282 553 11444 9484 1877 6811 11670 7629 882 5606 4132 5044 12360 4796 5233 3645 14869 11400 1059 5724 4044 10838 5603 753 8464 2286 1890 13227 6122 7581 4587 4246 3578 5170 14200 7182 6415 6060 1...
output:
948540404
result:
ok single line: '948540404'
Test #61:
score: 0
Accepted
time: 660ms
memory: 341752kb
input:
1000000 4899 1063 4099 3811 7307 11199 5953 14235 14185 3791 4545 6563 3769 9704 9392 4707 2286 6895 4251 185 229 10195 2472 12898 4412 2914 11483 5235 2565 12971 12907 5976 13829 7314 5611 2288 7310 6107 10000 12928 13484 14312 5142 7089 2178 14747 14275 12461 5625 13397 9971 13526 9498 9670 6193 1...
output:
977334912
result:
ok single line: '977334912'
Test #62:
score: 0
Accepted
time: 668ms
memory: 343344kb
input:
1000000 5940 900 6403 10701 10814 10550 4256 3236 1913 10299 12196 1605 9133 4482 11043 3839 9770 13392 9963 8170 14931 249 266 104 1429 12459 2162 1485 2658 960 9257 4557 6486 766 3393 12088 12420 4131 7291 7740 4280 6850 9692 13745 8486 7467 14428 1477 6846 10850 9839 6195 2990 9883 6707 14015 133...
output:
961010112
result:
ok single line: '961010112'
Test #63:
score: 0
Accepted
time: 803ms
memory: 343516kb
input:
1000000 7639 8076 9552 6614 11932 9412 969 9129 5328 3953 7277 6801 3775 14394 12054 9265 6359 793 4113 5898 7870 2327 7122 5898 10102 10438 13070 6733 3624 7039 13322 6101 213 3994 14678 5727 1165 11169 3447 3419 8840 13233 8812 10040 4316 14621 5135 3447 6216 4962 6219 9605 5376 12753 13154 2734 6...
output:
342042972
result:
ok single line: '342042972'
Test #64:
score: 0
Accepted
time: 636ms
memory: 343428kb
input:
1000000 5105 7109 433 13488 13753 5425 10963 1215 9415 7787 7250 6408 7704 967 5777 5016 10357 501 13051 9796 11334 11582 6464 10261 3794 1554 10904 212 5910 5479 889 7968 13528 4753 7856 5309 3411 14986 13320 3646 4888 5352 6864 11897 11313 9377 14937 14322 11626 5472 3272 8239 7464 7700 1506 14117...
output:
352749099
result:
ok single line: '352749099'
Test #65:
score: 0
Accepted
time: 532ms
memory: 341916kb
input:
1000000 14091 3928 5946 14199 4716 9441 2267 233 11980 2119 14187 11338 12669 10686 1435 2149 14925 9368 11118 11186 11306 4991 14185 11611 3083 10736 506 2047 13328 11186 11536 14899 6572 2305 96 1282 12199 14925 685 13832 3049 12423 6979 13801 9365 13708 13410 4286 67 12376 5842 10054 14983 11313 ...
output:
651509559
result:
ok single line: '651509559'
Test #66:
score: 0
Accepted
time: 491ms
memory: 341980kb
input:
1000000 2718 9108 12667 6664 11848 5228 12314 12618 11337 5045 14276 13298 5126 11618 1805 6238 8215 810 10742 1097 9439 9727 1576 9916 14402 7769 6125 13904 12303 6840 1292 9917 1656 12279 6414 2228 11275 3110 5470 2311 6364 1131 2976 8904 12135 1514 13972 3983 6096 11458 6397 13814 1843 12826 2709...
output:
640426451
result:
ok single line: '640426451'
Test #67:
score: 0
Accepted
time: 703ms
memory: 341816kb
input:
1000000 12156 8536 9591 6098 13413 10400 3006 5624 9833 5822 7413 9508 3780 7797 1984 3405 8181 510 6739 13211 5425 3114 9374 3730 11774 7504 11951 10269 12471 13883 14072 10634 8661 12726 13189 8013 12154 10932 3318 6170 3131 1917 3126 8368 14464 6300 4943 1659 1993 10418 6571 2564 10706 7836 9941 ...
output:
343483755
result:
ok single line: '343483755'
Test #68:
score: 0
Accepted
time: 658ms
memory: 342912kb
input:
1000000 3609 12339 5717 173 1051 110 5760 10050 12281 6510 11155 9168 9668 8816 7388 12329 14015 12849 3684 13710 9766 7697 14200 76 1326 12164 2439 13292 6807 1395 7234 5395 11612 1155 487 1188 1735 9929 8911 12674 449 11362 14671 11910 8497 10469 7822 8902 11837 11929 8962 255 9937 10551 10171 302...
output:
376111784
result:
ok single line: '376111784'
Test #69:
score: 0
Accepted
time: 770ms
memory: 342332kb
input:
1000000 11367 10060 7047 2055 896 5497 12558 14000 195 4895 9833 14905 8549 14550 10261 8143 8319 5860 7711 12198 12679 5588 13408 13185 1359 13265 1509 7417 8553 4454 7272 4324 9506 14465 1417 9711 2704 9081 13716 11029 2803 1090 14300 7096 6409 4490 2898 14844 1097 12718 5752 3120 9093 773 5827 22...
output:
238599993
result:
ok single line: '238599993'
Test #70:
score: 0
Accepted
time: 665ms
memory: 343160kb
input:
1000000 2866 583 3517 12134 14470 842 9973 10098 11287 1275 9249 6908 4034 9835 11479 2605 4466 14048 10888 12285 3795 11675 4859 884 13094 8320 10666 8751 14982 8855 3787 14006 7959 57 11821 5981 974 5541 12546 10993 6330 14021 2361 5662 10204 480 14680 10827 7055 12383 1096 119 2616 2344 2141 5071...
output:
692643664
result:
ok single line: '692643664'
Test #71:
score: 0
Accepted
time: 738ms
memory: 343696kb
input:
1000000 11358 3336 10603 12126 14231 8665 5161 8314 5644 5506 11360 2301 13551 3387 4618 3272 8877 7629 1099 14556 2282 3901 6777 12501 5636 4865 8047 9066 7095 9847 9956 2883 8423 8400 7651 8592 6440 9140 5256 11167 1953 9515 4612 1533 4100 5576 5911 13428 1025 11925 7832 11906 4666 7196 6680 6171 ...
output:
932986071
result:
ok single line: '932986071'
Test #72:
score: 0
Accepted
time: 661ms
memory: 342820kb
input:
1000000 13306 12593 1396 10099 1755 10784 1638 1240 4967 12821 10348 14329 11975 5261 10238 1575 9098 9652 8516 11984 9663 4891 3749 12373 6316 7416 1286 2661 3432 10102 4680 1438 12412 13834 524 10727 3380 10837 14251 10860 14059 3864 14297 1919 8499 10361 6951 2558 5604 8359 14630 13358 12552 6088...
output:
37248104
result:
ok single line: '37248104'
Test #73:
score: 0
Accepted
time: 640ms
memory: 341800kb
input:
1000000 12702 9753 5835 9099 7572 4695 13884 5775 13713 12779 13196 4062 13393 1076 10673 10858 4358 10960 12646 10286 9349 1053 7750 3432 13302 10781 4533 564 901 2995 9198 3941 6054 2769 9314 13034 302 4683 9564 12464 932 13148 1889 13273 9383 10419 3695 2807 5985 1095 263 1958 11927 6677 7010 135...
output:
787834500
result:
ok single line: '787834500'
Test #74:
score: 0
Accepted
time: 703ms
memory: 343216kb
input:
1000000 2092 5080 14571 9009 5407 6571 7940 8944 14592 4091 12967 5568 9881 4705 13841 5929 2920 1622 6317 3061 4743 10515 8006 13839 3975 708 9282 4349 86 12189 14209 6238 12043 9329 6364 2296 12256 11881 1876 2858 12085 10746 4563 8265 12102 11211 12977 9179 3884 7037 1046 13345 7730 4514 5863 130...
output:
702793188
result:
ok single line: '702793188'
Test #75:
score: 0
Accepted
time: 801ms
memory: 342552kb
input:
1000000 4157 1483 3045 13741 1419 8404 8464 862 14744 8916 5734 10537 7895 13332 13987 10096 9815 132 35 13911 1414 11964 912 7821 13273 6369 5812 308 5299 149 3258 4354 13040 6630 7553 11038 14172 644 2875 4939 8321 5472 1360 11274 6773 14311 2141 10304 14386 12858 9077 6054 12465 11921 3038 6368 1...
output:
801964794
result:
ok single line: '801964794'
Test #76:
score: 0
Accepted
time: 762ms
memory: 342552kb
input:
1000000 5265 13417 7477 7324 699 13532 10628 6528 204 2947 10573 989 6275 5483 1381 7458 3900 8363 10794 13642 507 10474 7533 5622 10951 12259 864 5757 292 8519 2393 2303 12322 2909 7413 6084 12991 2533 7180 1722 10716 14327 1199 10563 9847 13551 10034 10047 11285 9825 1359 11958 10886 9711 5569 231...
output:
58607134
result:
ok single line: '58607134'
Test #77:
score: 0
Accepted
time: 767ms
memory: 343188kb
input:
1000000 2342 8768 5820 7577 5651 13822 9760 2120 11210 5465 1678 7853 8122 5410 10431 13976 2100 7613 12093 2614 1380 8289 2595 9392 9225 839 2145 11841 9222 757 1041 2860 2171 4743 2313 14420 5927 49 8259 9370 11967 3895 10825 3323 1015 6508 13976 11817 7073 1182 14650 11416 13281 6994 5559 6518 62...
output:
315400755
result:
ok single line: '315400755'
Test #78:
score: 0
Accepted
time: 435ms
memory: 342004kb
input:
1000000 11680 8886 3499 13649 13529 3892 3499 4557 3350 12008 14835 6841 5342 5812 11222 3571 10344 2776 11460 7206 465 2920 8837 6524 10793 14624 12201 7758 4330 14398 3233 10966 8910 5130 7746 13258 10630 8967 4770 868 10848 10386 2657 2878 2657 10192 3499 8682 13944 13996 2905 10884 4820 4235 203...
output:
622656413
result:
ok single line: '622656413'
Test #79:
score: 0
Accepted
time: 643ms
memory: 342960kb
input:
1000000 6928 4760 73 7527 2360 8792 7399 13586 14077 6211 8665 13904 12357 3827 6325 372 7378 11741 2951 7603 441 5111 6144 907 6158 2243 14599 9807 1018 2641 8818 6609 10946 1094 14333 12726 13607 2928 13412 8125 11860 14967 426 12185 9676 9266 1836 6308 4914 8426 8107 6058 13407 13028 3604 7643 57...
output:
428244900
result:
ok single line: '428244900'
Test #80:
score: 0
Accepted
time: 615ms
memory: 342176kb
input:
1000000 682 3902 10585 1530 5664 9675 11836 13120 9932 3232 3846 2263 10124 9090 11595 13808 707 5754 3745 13673 12652 14837 4528 5624 8017 1128 1875 3879 5937 467 8945 8920 5683 9577 14196 11134 6285 13557 11738 6203 8429 3745 1728 3762 6912 6363 9555 13201 11410 7419 10895 7796 8516 11584 4064 328...
output:
769647693
result:
ok single line: '769647693'
Test #81:
score: 0
Accepted
time: 646ms
memory: 342124kb
input:
1000000 5666 4388 2960 2769 14337 4287 7153 13104 8775 4465 14206 7386 4231 6673 10158 6060 14830 7858 13799 6018 10785 414 2680 1526 5270 11384 3048 11391 10344 9532 12027 3968 1958 5895 14966 12351 11662 12798 10762 7434 14114 4828 12479 4270 9852 5920 4671 4990 6824 12248 1790 414 2611 4567 5766 ...
output:
516813665
result:
ok single line: '516813665'
Test #82:
score: 0
Accepted
time: 727ms
memory: 343560kb
input:
1000000 5341 10507 10477 2614 2650 13239 13485 2460 3785 7870 6344 2727 5337 12489 4398 14767 5780 14567 2560 14958 585 6637 9082 14324 590 7649 11445 9311 9043 1131 10955 6368 10864 3094 14021 8510 5454 6023 9548 11389 7117 2288 12848 13107 8634 1781 5522 8557 14669 9037 14282 14679 14505 6821 2638...
output:
403851021
result:
ok single line: '403851021'
Test #83:
score: 0
Accepted
time: 688ms
memory: 341584kb
input:
1000000 1098 7103 5910 13047 14205 7108 12181 9210 12 7772 5213 8947 3030 4021 2574 3007 10935 13728 4705 5556 942 11404 5287 13601 5146 8303 11770 7859 8502 7200 5221 12984 4668 8811 8181 13742 10136 12112 14408 336 13006 9192 9142 7526 9206 2263 14010 6458 7863 5966 4842 2966 585 14646 8818 1257 7...
output:
130754136
result:
ok single line: '130754136'
Test #84:
score: 0
Accepted
time: 786ms
memory: 343460kb
input:
1000000 10763 6986 2171 13840 1568 14117 9117 431 1915 3376 14036 13964 11224 7548 13321 11709 169 6969 1404 12077 8905 3058 14721 13776 12375 11983 6342 11402 265 12086 9450 5968 452 10978 1920 514 744 6466 13911 778 9896 10842 7196 12762 4639 4275 8896 8888 2756 3499 11593 6720 12623 2408 3932 170...
output:
268166689
result:
ok single line: '268166689'
Test #85:
score: 0
Accepted
time: 738ms
memory: 343544kb
input:
1000000 2897 13636 1288 9242 9192 11000 1927 7999 3049 14762 9851 12621 10533 3572 12687 5724 5858 7649 3587 2278 6972 4082 2402 1273 11438 14578 12053 11617 9918 7218 8700 14906 7195 13977 10312 1591 12541 5519 1527 13658 7243 1211 7580 3803 4730 7140 3520 5729 3533 6898 12984 7235 8211 13690 7436 ...
output:
697984057
result:
ok single line: '697984057'
Test #86:
score: 0
Accepted
time: 611ms
memory: 343124kb
input:
1000000 7744 8979 14707 10767 8858 2501 10133 10725 469 10451 4882 10933 240 12522 3689 12480 507 11337 889 843 2326 9669 4039 7163 10012 793 10023 3658 10636 1348 1902 4003 11251 11233 11044 12602 2619 9081 2077 7344 9166 12389 8367 8002 8376 11044 4389 7985 1394 9941 7535 548 1495 13519 288 7707 1...
output:
374460055
result:
ok single line: '374460055'
Test #87:
score: 0
Accepted
time: 744ms
memory: 341588kb
input:
1000000 6434 10120 7401 8421 6786 5243 6478 4410 13008 3317 2701 12645 1613 3260 3748 14893 1694 3777 12042 10783 6579 9637 6022 8057 14143 4362 11001 3218 12543 13576 7269 14057 4487 7313 11278 13844 1496 11576 14165 979 12777 11002 14259 7610 7262 1681 3442 3705 6864 4796 12717 13122 10621 1518 30...
output:
357865959
result:
ok single line: '357865959'
Test #88:
score: 0
Accepted
time: 775ms
memory: 341816kb
input:
1000000 6561 7921 2252 10002 5848 11489 3797 3471 1028 14405 14905 5483 10275 227 1201 5874 4000 3324 14515 5192 8955 491 61 8204 3279 3857 5706 2930 3644 7173 13344 1999 4732 2086 3642 11622 12647 13786 5670 2797 8778 879 1217 13482 11450 6845 10600 12615 1053 6117 9451 9954 7002 13282 13093 7762 1...
output:
542788537
result:
ok single line: '542788537'
Test #89:
score: 0
Accepted
time: 686ms
memory: 343588kb
input:
1000000 9926 4820 11500 11864 6771 13348 687 7245 4716 13797 9593 1002 12904 1637 5231 3019 8635 10679 3852 11183 9352 10108 10925 4282 10424 1645 10510 9961 2676 11198 13873 3106 7748 137 7284 7039 1468 10301 12942 14620 6915 6251 11078 13781 13241 2451 4009 13970 4322 14493 11037 13493 14221 12820...
output:
403692132
result:
ok single line: '403692132'
Test #90:
score: 0
Accepted
time: 776ms
memory: 342068kb
input:
1000000 4043 9858 7218 11184 13587 2892 11646 4353 3839 9239 5088 1836 2137 7450 10692 7470 938 5069 7603 9598 7010 8066 6188 2590 4200 8871 13819 7599 13304 5622 1535 11556 8211 8404 10727 4498 5600 1647 2047 577 1768 12192 6230 5509 2062 6130 7243 2391 435 14481 4581 5934 3181 10353 2294 6463 1093...
output:
718264546
result:
ok single line: '718264546'
Test #91:
score: 0
Accepted
time: 740ms
memory: 343568kb
input:
1000000 14450 2830 13297 6741 14469 5585 13581 1026 8407 10029 3585 1563 2364 13573 398 4906 11044 10821 7836 10946 2799 12036 6094 3573 3407 4295 122 9284 10470 12121 10235 12699 7248 1515 12940 8644 14993 246 12059 14305 5473 5326 12700 11664 1932 549 9935 2134 11929 4411 5321 13462 6923 1666 3756...
output:
277815308
result:
ok single line: '277815308'
Test #92:
score: 0
Accepted
time: 654ms
memory: 341760kb
input:
1000000 12795 4534 3452 11873 2448 13071 12852 11667 1232 8483 6788 4347 4039 6166 7568 5608 5396 12041 4414 13781 6010 2938 1670 13687 11205 8535 10581 9659 5009 2735 13018 8211 2782 14447 5632 4724 6592 8030 14453 5782 9127 7433 10819 11394 13140 2212 14201 2843 13512 2829 14749 14865 3641 12322 1...
output:
603485248
result:
ok single line: '603485248'
Test #93:
score: 0
Accepted
time: 649ms
memory: 341844kb
input:
1000000 4992 14241 12536 14954 5909 6642 12745 14199 2355 3217 4151 11519 556 8740 9789 9037 6807 5720 10075 12476 5800 13409 10199 6955 11362 10437 13130 2995 7645 9738 1589 5866 3255 5866 11049 4253 909 1794 14322 10910 1976 270 6712 12951 8363 14645 9037 9977 9217 14193 8580 13529 11169 7741 8708...
output:
897652756
result:
ok single line: '897652756'
Test #94:
score: 0
Accepted
time: 727ms
memory: 342076kb
input:
1000000 7871 6833 12288 7138 6260 11103 1283 9306 14562 13253 7931 12967 1420 6676 14755 1009 5974 9303 6939 14586 673 11411 12047 13762 3789 10035 9066 14830 646 14853 5343 4392 5069 7210 387 7005 6632 14384 2408 12698 7632 5937 12389 8728 1014 3286 8099 9697 3355 14722 14076 11102 8541 14104 6690 ...
output:
394968457
result:
ok single line: '394968457'
Test #95:
score: 0
Accepted
time: 796ms
memory: 341816kb
input:
1000000 7580 7354 14933 11429 9706 3846 6022 6386 7912 3304 788 14676 5914 9232 10407 6697 12737 14583 12547 5769 13598 7898 92 2841 4928 14244 11188 10747 297 2175 12701 11473 6754 9239 8961 11989 10185 10847 11966 6456 6628 5759 11027 5305 5715 6039 7305 9799 9327 2047 3354 2167 2152 5160 13860 21...
output:
326454709
result:
ok single line: '326454709'
Test #96:
score: 0
Accepted
time: 674ms
memory: 342812kb
input:
1000000 8315 4635 3478 3566 2008 11547 8759 7807 14126 2283 14119 7729 14025 1773 9276 92 3697 9063 235 2603 1245 11583 2480 4638 7776 1470 6875 10924 8843 8889 713 10705 14309 3883 10314 5196 7090 13888 894 12673 12302 1585 14278 14423 2760 5247 8136 14905 11012 8557 8144 11679 10755 13415 9084 979...
output:
176427886
result:
ok single line: '176427886'
Test #97:
score: 0
Accepted
time: 588ms
memory: 342928kb
input:
1000000 14356 6185 12413 9958 10750 1534 7361 7025 530 2131 3533 7218 8807 2975 14616 7164 476 12823 13966 9607 8644 11412 8049 4297 5588 11294 5551 7882 6098 9897 12456 2166 12330 6575 9231 12832 10003 4504 14037 14181 5017 841 720 4670 7133 2596 1687 7180 9709 12866 8416 4350 10206 12146 14457 384...
output:
943403581
result:
ok single line: '943403581'
Test #98:
score: 0
Accepted
time: 644ms
memory: 342124kb
input:
1000000 10118 4042 5240 3967 5258 14269 14477 4138 599 11802 1994 194 12169 7049 3020 4734 11824 13389 13358 10327 13474 490 12519 14760 6932 12273 5069 9621 3835 4297 5901 12045 14077 7783 8796 1070 992 4597 12413 11316 6814 14856 3393 9045 2940 9866 7645 11670 424 8458 3783 174 8460 7038 5542 4632...
output:
144766792
result:
ok single line: '144766792'
Test #99:
score: 0
Accepted
time: 811ms
memory: 342440kb
input:
1000000 3130 12646 3728 14462 3637 2645 10295 643 9682 7955 14502 1244 12749 14132 5758 1204 1616 14858 7855 3673 1958 6205 5192 7520 84 11728 7311 1448 11416 1204 4915 5215 10366 2241 10241 5467 14085 8644 10135 13536 10012 4117 1057 12989 14843 3158 4308 9033 870 1540 5763 3401 4620 2203 665 4846 ...
output:
12259084
result:
ok single line: '12259084'
Test #100:
score: 0
Accepted
time: 674ms
memory: 343252kb
input:
1000000 2527 11793 5769 6338 5459 6624 14434 561 6831 1018 6406 2603 3739 8958 269 5930 2335 7974 7497 14344 4083 3261 3008 12598 6600 4310 4871 9460 13511 11255 4348 14970 2608 9651 9725 1092 8940 9117 6327 3153 10006 45 1785 12650 5630 8552 8003 7497 3361 1064 12198 3175 11165 13584 337 4446 4485 ...
output:
526008464
result:
ok single line: '526008464'
Test #101:
score: 0
Accepted
time: 743ms
memory: 342472kb
input:
1000000 6779 4848 2498 8091 14865 12179 9350 5800 12337 11327 1013 7313 14633 11718 3666 11725 101 4548 14741 13790 6981 5978 6554 5389 8489 3972 10476 11260 8861 2130 5152 8165 1260 6586 868 2952 4839 14960 10044 13843 8838 9140 5729 11415 14895 9667 1441 11047 4408 6447 7209 4598 6134 10282 5163 9...
output:
710228923
result:
ok single line: '710228923'
Test #102:
score: 0
Accepted
time: 782ms
memory: 342732kb
input:
1000000 1343 4005 5541 966 12044 5548 8472 10025 29 9643 5316 10843 2645 7879 1191 13499 11834 3741 1910 7460 3662 14276 3535 3089 14791 6032 13410 7688 8527 1371 12924 506 7956 2442 926 11716 12235 3978 5427 3901 977 8510 10344 5948 638 370 1212 8331 5990 1437 13182 14676 1440 12617 13243 6646 9315...
output:
672579000
result:
ok single line: '672579000'
Extra Test:
score: 0
Extra Test Passed