QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#220458 | #7624. Mystery of Prime | Heltion# | AC ✓ | 12ms | 3692kb | C++20 | 1.6kb | 2023-10-20 13:33:53 | 2023-10-20 13:33:53 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
using i64 = int64_t;
using f64 = double_t;
int main() {
cin.tie(nullptr)->sync_with_stdio(false);
constexpr int maxn = 200000;
vector<bool> ip(maxn + 1, true);
for (int i = 2; i <= maxn; i += 1) {
if (ip[i]) {
for (int j = i + i; j <= maxn; j += i) { ip[j] = false; }
}
}
int n;
cin >> n;
vector<int> a(n);
for (int &ai : a) { cin >> ai; }
// org, 1, odd > 1, even
vector<int> f = {0, 1, 1, 1};
if (a[0] == 1) { f[1] = 0; }
for (int i = 1; i < n; i += 1) {
vector<int> g = {n + 1, n + 1, n + 1, n + 1};
for (int j = 0; j < 4; j += 1) {
int w = 1;
if (j == 0) {
w = 0;
} else if (j == 1) {
w = a[i] != 1;
}
for (int k = 0; k < 4; k += 1) {
if (k == 0) {
if (j == 0 and not ip[a[i] + a[i - 1]]) { continue; }
if (j == 1 and not ip[a[i - 1] + 1]) { continue; }
if (j == 2 and a[i - 1] % 2) { continue; }
if (j == 3 and a[i - 1] % 2 == 0) { continue; }
}
if (k == 1) {
if (j == 0 and not ip[a[i] + 1]) { continue; }
if (j == 2) { continue; }
}
if (k == 2) {
if (j == 0 and a[i] % 2) { continue; }
if (j == 1) { continue; }
if (j == 2) { continue; }
}
if (k == 3) {
if (j == 0 and a[i] % 2 == 0) { continue; }
if (j == 3) { continue; }
}
g[j] = min(g[j], f[k] + w);
}
}
f.swap(g);
}
cout << ranges::min(f);
}
这程序好像有点Bug,我给组数据试试?
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3504kb
input:
6 1 5 1 4 4 1
output:
2
result:
ok 1 number(s): "2"
Test #2:
score: 0
Accepted
time: 1ms
memory: 3532kb
input:
9 30 6 7 12 15 8 20 17 14
output:
4
result:
ok 1 number(s): "4"
Test #3:
score: 0
Accepted
time: 2ms
memory: 3568kb
input:
1568 119 519 706 1003 1317 322 25 1466 816 525 1 1122 38 1511 774 515 274 780 647 230 1602 1051 810 1 1 1232 1 1202 1583 412 1111 168 309 1181 184 1260 491 764 809 1213 804 1470 1 1087 1235 1004 673 1338 1333 1392 1036 1539 268 1 712 727 297 404 1317 36 463 1067 1133 693 931 46 1 100 1608 965 1 1406...
output:
733
result:
ok 1 number(s): "733"
Test #4:
score: 0
Accepted
time: 2ms
memory: 3544kb
input:
3261 489 1809 920 1061 1423 2330 420 1090 1387 1272 2238 979 1 2788 1885 1739 2291 1 1225 2076 2355 2008 1753 1438 2047 1148 1294 2179 2763 2074 1259 272 769 2104 2829 643 905 2155 2432 2328 1369 1 786 832 1 1775 885 867 803 2830 1 2088 2625 2735 2028 1489 105 1647 2844 2365 1521 1295 2318 2929 1 27...
output:
1501
result:
ok 1 number(s): "1501"
Test #5:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
4861 753 448 1399 1244 3435 3244 69 4110 3901 2335 3418 3242 2207 191 379 282 2896 1 1068 1 66 3517 1992 1 642 2103 3205 162 2971 1168 699 1972 1823 2856 2567 1772 246 2075 3623 1574 3105 2797 4121 1 3583 763 3567 3730 2043 2347 3483 8 347 405 1 1 3918 1270 2821 2566 1093 1586 683 3578 3879 1854 314...
output:
2283
result:
ok 1 number(s): "2283"
Test #6:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
6388 1 1372 1768 3823 1 1996 5172 3926 5734 1 5234 5219 4671 976 3880 4779 4721 5488 549 3080 1900 1001 1732 1129 4383 2071 4035 2798 1 1065 5222 65 351 1 2038 376 1 5423 3204 1 2256 3992 2365 5184 3522 1958 3969 5644 4263 3790 2064 3653 20 5103 5648 1404 14 2525 4306 796 4413 4018 1 4828 6013 1763 ...
output:
3015
result:
ok 1 number(s): "3015"
Test #7:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
7037 5377 66 1267 1689 3544 5122 5995 2503 1174 4380 1 4937 7077 3803 6290 82 3105 3612 2369 1 2214 4702 7575 3148 1 3569 3287 7882 3739 7306 2774 2088 1 7226 6299 6454 7485 310 3051 1 4663 6758 1606 6919 6609 7243 1984 6330 4339 7046 3909 4910 4131 3829 5722 1 6216 5827 2205 3580 2689 4030 1973 1 6...
output:
3297
result:
ok 1 number(s): "3297"
Test #8:
score: 0
Accepted
time: 2ms
memory: 3540kb
input:
9795 3928 1555 4412 1 5069 7890 2761 1 7087 4174 1976 1905 1 252 377 2654 9457 191 5272 7469 5598 1640 2139 3397 6892 2441 1234 4951 1803 1 1 3010 2584 1239 3550 422 1 1548 5321 4027 6445 6202 8609 2276 8255 6696 3612 1621 8256 9001 648 5181 7970 6694 9825 6934 1 2914 2347 1 4874 9396 312 2124 3409 ...
output:
4614
result:
ok 1 number(s): "4614"
Test #9:
score: 0
Accepted
time: 2ms
memory: 3512kb
input:
11372 11482 11131 9002 7055 1 1 5112 11417 10956 1 4918 576 7024 8866 1 1 3060 840 9478 9925 3895 8076 2034 935 9528 11555 1598 3929 4598 2413 6404 6032 2255 1280 8715 4081 7197 6863 4464 4568 1 3466 7074 7813 1990 11019 4988 7173 6826 11271 2632 2223 530 6028 8215 10794 1122 5655 10912 2317 1926 19...
output:
5375
result:
ok 1 number(s): "5375"
Test #10:
score: 0
Accepted
time: 3ms
memory: 3472kb
input:
12891 6490 2963 111 9520 5713 5735 7392 10432 2341 7481 9170 3947 3594 3935 8030 1 2186 7965 3824 119 1 1 8932 10099 3298 1 1 8526 1094 4963 8718 6634 5065 8604 1 5557 9766 1804 1268 2543 2373 9414 6027 1094 5183 2562 1051 7801 1372 8959 3700 9639 5472 349 1 4297 1482 6205 9221 1847 1 8616 1 3822 68...
output:
6095
result:
ok 1 number(s): "6095"
Test #11:
score: 0
Accepted
time: 3ms
memory: 3560kb
input:
14642 7680 14114 13575 1 7308 13729 7782 3707 2326 378 4028 10296 1 7498 6542 1 5986 9027 4654 1 6398 4670 3071 1636 6161 11752 5789 8712 5706 13507 4055 6583 271 8302 13840 4359 6530 1 3918 1 10569 5745 5855 5868 12793 12840 14066 4270 4187 1 5188 14048 1 8103 2156 4472 3455 8082 12001 1312 8010 1 ...
output:
6886
result:
ok 1 number(s): "6886"
Test #12:
score: 0
Accepted
time: 3ms
memory: 3624kb
input:
15776 13414 5405 5280 790 6101 14407 6632 14507 12486 5464 13998 268 2282 9511 14730 12917 1604 6605 13658 11057 119 1 6489 1 8310 4629 11420 8651 8926 11601 4290 1050 7123 8965 7570 4628 4091 573 8630 1 1 12918 11159 1 11409 3830 1 7885 3312 12965 13766 10099 13468 9206 9250 14415 1719 12299 14412 ...
output:
7430
result:
ok 1 number(s): "7430"
Test #13:
score: 0
Accepted
time: 3ms
memory: 3532kb
input:
18032 10442 1 9478 7662 11688 7401 14529 2107 1655 5064 16611 4736 15550 9747 15798 1 4156 7591 10281 16347 2402 1861 15020 2352 4539 1 6732 7930 1 5364 4993 10326 12185 1 1062 2551 490 5073 14108 8246 1 1 1 9282 1 9133 1220 15803 14791 7486 8895 4654 16319 16264 1619 17798 3291 1502 373 10128 16799...
output:
8507
result:
ok 1 number(s): "8507"
Test #14:
score: 0
Accepted
time: 3ms
memory: 3576kb
input:
19454 1 5071 1207 5004 13509 8402 7367 16490 1 12254 14205 8988 5949 15514 11762 13894 10958 18270 5731 8148 19046 18997 1 1986 4059 11261 2180 13313 18078 1 7973 11141 1 9627 11527 11491 1 1 17102 10397 4833 1 1 1630 15473 6653 11385 4586 16757 18494 14222 4997 14856 3571 11711 14208 17303 5366 230...
output:
9222
result:
ok 1 number(s): "9222"
Test #15:
score: 0
Accepted
time: 3ms
memory: 3580kb
input:
20906 1 1 1 5520 6281 2842 1 5896 14034 988 1201 13410 2317 1 1 4936 2817 1538 329 15110 14343 11823 3221 1 19920 1 5061 1 10643 2914 3607 8000 6126 145 1 16771 8630 2796 1 19524 5630 7293 3220 18623 4051 14006 13760 12407 6086 1895 14620 143 4081 11322 15391 19706 8851 12884 9788 5947 14202 5673 47...
output:
9936
result:
ok 1 number(s): "9936"
Test #16:
score: 0
Accepted
time: 3ms
memory: 3516kb
input:
18427 18878 18927 9922 16339 16578 12972 16197 6189 13993 1632 13756 10622 42 17765 18671 1038 1 8442 1 1 11266 8461 18588 5505 263 1 17230 1510 5945 21191 3012 8017 11668 18715 1876 1 4902 3035 14516 4641 17685 1 3814 20425 1 9634 1 20248 14081 5038 17287 15334 4627 21447 3918 9508 10272 4150 1029 ...
output:
8780
result:
ok 1 number(s): "8780"
Test #17:
score: 0
Accepted
time: 4ms
memory: 3548kb
input:
21978 23205 2963 6474 17526 4993 1974 22433 1 13874 1 1 1 13495 3982 2226 17004 14968 351 9135 9482 17697 6925 20248 1 13240 1 22388 4845 22177 4379 14844 8546 18570 8272 10233 20670 3716 16364 14541 9682 2633 17422 22011 23346 17711 3362 20789 18145 7224 17653 10264 23967 1 23654 20223 1 1 12678 61...
output:
10473
result:
ok 1 number(s): "10473"
Test #18:
score: 0
Accepted
time: 4ms
memory: 3600kb
input:
26173 7049 1 22768 1 1 9223 1 17728 13531 9564 16317 9910 10341 17061 7559 3032 19317 1 9186 8896 3861 5283 7529 20501 17894 11431 14125 19813 22104 9549 12064 5977 18720 4133 16716 9566 20647 10030 20115 14116 18482 19571 906 21085 22047 15986 10524 1 732 4701 5496 12882 12172 13171 19356 7835 1839...
output:
12461
result:
ok 1 number(s): "12461"
Test #19:
score: 0
Accepted
time: 4ms
memory: 3668kb
input:
26649 1 3141 16234 26200 8739 3914 23414 19707 22487 3296 22693 23392 21385 8140 3481 23792 11931 11576 833 1 14386 1228 25850 21609 5756 4545 19269 12762 21119 10028 7359 4970 259 1 1 15804 26505 1 26052 10000 23658 7031 13360 27155 10478 20433 6140 6071 7964 25989 5050 1 19080 24802 18633 9314 1 7...
output:
12686
result:
ok 1 number(s): "12686"
Test #20:
score: 0
Accepted
time: 4ms
memory: 3608kb
input:
26310 20896 11998 14461 5037 23219 1535 1 16949 17411 9235 28054 480 17807 11415 23015 7684 3997 1 1 22272 1 22548 1 21577 1 15254 14300 211 13134 14942 17411 16958 9819 8933 22852 28634 28569 22688 14521 6221 25380 27461 7383 12059 8042 123 3728 22458 11581 22194 14219 3550 20837 264 6462 1 18780 2...
output:
12476
result:
ok 1 number(s): "12476"
Test #21:
score: 0
Accepted
time: 2ms
memory: 3556kb
input:
28414 25521 12435 25394 4468 7639 7468 25989 23512 14385 26122 14361 7208 15858 3961 14227 11536 15417 1 6676 1 1632 26514 17197 28179 16202 13061 12572 7954 1 10586 21259 1 1 1730 20065 1 3753 20510 8735 22402 19935 1 16808 13380 19980 28049 12204 12505 29435 7850 13681 1648 1 1 18465 4906 22979 26...
output:
13613
result:
ok 1 number(s): "13613"
Test #22:
score: 0
Accepted
time: 4ms
memory: 3620kb
input:
28509 17358 1 22510 19979 16410 679 1 1 1 2058 5849 27200 28298 12298 31933 9844 14385 13101 11666 21573 7976 19461 26280 16866 10548 1918 3979 25767 1 9000 11620 31783 826 16814 1 25980 20374 29259 31095 1 11459 1604 28314 15176 17947 2532 27600 7334 30003 1 31600 30397 11212 5445 30848 15641 24572...
output:
13604
result:
ok 1 number(s): "13604"
Test #23:
score: 0
Accepted
time: 5ms
memory: 3464kb
input:
34034 23746 16751 24519 1 15275 13456 15333 10408 16777 23515 5088 4373 9324 6343 10407 16749 25955 24834 1117 20046 19389 25791 1 15248 26264 5664 1 20145 1 16931 1 415 20757 23344 8800 18475 21690 20783 13568 20181 20836 30667 20918 18861 1 15306 1 26300 19118 1 22276 18497 29673 15137 14441 30398...
output:
16276
result:
ok 1 number(s): "16276"
Test #24:
score: 0
Accepted
time: 5ms
memory: 3692kb
input:
31789 30191 32495 1 1 27248 1 12238 12069 1509 10498 13813 18550 19651 32985 1 2291 13256 533 10724 11356 1 1 1 1 20592 18827 26614 13747 9792 8647 16817 3917 28727 1 25231 29605 10324 16567 556 27200 5055 26908 1 1 32411 32079 10474 18611 10108 8019 6579 26612 28217 22828 25542 29336 33161 5343 334...
output:
15161
result:
ok 1 number(s): "15161"
Test #25:
score: 0
Accepted
time: 5ms
memory: 3536kb
input:
36148 3916 3297 6919 15307 19834 5313 25546 22767 8354 8338 12051 31213 7219 22654 1 25287 16310 6627 9864 4218 21164 2623 1 1462 8700 27233 8954 1 21522 9697 1 17387 34444 26937 1 8116 21805 1 1 21598 6811 31909 1 14307 20141 1779 1 6058 11116 4005 22466 18425 1 32098 32165 17282 24880 3852 33414 3...
output:
17264
result:
ok 1 number(s): "17264"
Test #26:
score: 0
Accepted
time: 5ms
memory: 3456kb
input:
36296 23632 28027 23101 18550 28129 33180 20257 24557 37439 14930 12423 1 2242 34422 24491 12626 30613 18734 22036 38067 32527 21922 13009 12984 33001 9798 12366 16150 5789 32703 1 1 24418 15301 9389 38634 1 17971 32531 8777 22169 316 13334 3323 12609 1 346 1 19558 23085 24614 32463 1 20562 1 25793 ...
output:
17333
result:
ok 1 number(s): "17333"
Test #27:
score: 0
Accepted
time: 2ms
memory: 3584kb
input:
31567 32176 17275 22108 36553 12913 28255 1 1 37545 17801 3253 38234 7599 16771 23803 12495 10305 35730 37529 31877 5053 1 30276 33104 27797 326 26602 1 39876 3781 10164 6623 9327 556 19669 2398 30595 10476 17401 26201 23918 7275 17267 28201 1 23208 19037 36211 4638 22464 18947 1221 24581 5686 33453...
output:
15097
result:
ok 1 number(s): "15097"
Test #28:
score: 0
Accepted
time: 6ms
memory: 3500kb
input:
43273 20559 30000 1 31860 923 41542 1 17281 14043 17985 13009 9319 15061 25498 3133 12546 1 15153 17332 1 15970 16245 33379 5658 1 32475 27092 37290 1 4918 23606 1 4636 1 16348 1 26593 21693 37193 17617 1242 857 9246 1 8017 13243 1 31819 10891 40492 34789 11344 1 13517 1724 32085 15892 34437 19934 1...
output:
20844
result:
ok 1 number(s): "20844"
Test #29:
score: 0
Accepted
time: 6ms
memory: 3500kb
input:
43692 1 12378 32279 21330 23666 6255 29555 20369 3749 23337 6911 12518 1 9372 11625 29671 20002 28117 24777 26896 32286 25299 2937 23173 1206 1 1 3888 27905 26478 25493 30768 4740 14347 31713 31325 18518 11403 3958 1 1 23572 1405 12606 1 28042 32620 22217 23675 6919 1 11777 1 20170 33583 6626 35093 ...
output:
20843
result:
ok 1 number(s): "20843"
Test #30:
score: 0
Accepted
time: 6ms
memory: 3468kb
input:
44614 3008 35221 1 1 32106 4296 34887 23180 1 37506 25465 12152 4339 23834 17928 8801 41929 1 32762 41337 20248 13809 23476 17826 32588 19287 19512 24926 29506 20775 40799 1 11937 23990 12500 13583 5712 39829 33298 3600 34060 2864 20431 7658 32813 36429 1902 10208 5073 13357 7217 1769 1400 29736 180...
output:
21342
result:
ok 1 number(s): "21342"
Test #31:
score: 0
Accepted
time: 0ms
memory: 3504kb
input:
35860 1108 1 1 28498 14417 37044 35910 4430 9501 1 13578 7394 1 13547 41804 25079 13035 12622 10834 26857 36072 24669 1 43793 34804 1459 852 26515 23905 3627 3934 18660 9324 28707 21591 41708 16772 1 27822 23087 24060 12738 1 26749 38771 1 35929 22451 1 835 7366 26281 1 1 33224 3480 1 26852 17061 34...
output:
17292
result:
ok 1 number(s): "17292"
Test #32:
score: 0
Accepted
time: 3ms
memory: 3452kb
input:
41926 1 4218 1 22696 8377 38320 20689 18628 4157 11176 1 9676 19089 42501 35057 39831 17647 46429 10414 99 1 25571 5682 47787 19505 13169 43886 31333 1 26587 34407 17104 7021 1472 1 4998 30879 1 21853 27565 28534 9429 36023 14872 327 13116 1 32454 18980 47861 1 6762 37554 1 6790 37356 32202 17306 35...
output:
20013
result:
ok 1 number(s): "20013"
Test #33:
score: 0
Accepted
time: 3ms
memory: 3464kb
input:
50332 34823 1 28863 36206 38739 13027 35776 8857 7876 1 10302 28511 41346 40808 1 18213 23535 10834 20433 17811 22596 1 44908 10051 31712 2879 1 36907 7792 20361 25965 24406 40198 33621 10314 12868 13063 27766 21311 41090 1 4290 25321 28858 25250 1 47530 6721 5380 37071 3758 34398 30731 45924 1 4070...
output:
23995
result:
ok 1 number(s): "23995"
Test #34:
score: 0
Accepted
time: 3ms
memory: 3508kb
input:
50800 29530 27810 25973 40638 15829 1 2828 46946 40937 1 7025 22904 8079 29431 24699 6578 981 17698 5295 1 13082 1 16350 46411 31806 23681 1 24306 5969 17392 10957 19988 1 27108 1 1 1 1 1 35387 1 1 49577 1 20478 20235 2027 1 31090 29470 13082 26280 43036 14612 10654 1 19978 10899 640 1 49105 29051 2...
output:
24210
result:
ok 1 number(s): "24210"
Test #35:
score: 0
Accepted
time: 7ms
memory: 3564kb
input:
49290 1160 44796 37867 20364 36097 49681 1 40486 22261 28528 33765 21256 4398 7759 23380 47002 47424 28283 39487 50946 27652 21638 3406 51419 6944 23699 42876 29795 35843 31686 14566 6837 32080 43573 1 16795 16721 13718 10033 50147 28112 1 32008 24435 30391 2020 9099 3806 659 1 41838 45267 1 50772 1...
output:
23741
result:
ok 1 number(s): "23741"
Test #36:
score: 0
Accepted
time: 7ms
memory: 3508kb
input:
52385 32490 40379 15218 43297 25540 4105 5292 45041 1646 5121 44580 25389 49049 47924 16291 32388 33289 34185 48374 1 13366 20425 16925 49339 36858 43699 41406 42466 8252 1 2712 48527 35562 21357 43364 1 2160 30054 5705 1 25162 6015 2980 11496 32533 14933 12684 29627 45769 26880 12671 40002 5822 273...
output:
25198
result:
ok 1 number(s): "25198"
Test #37:
score: 0
Accepted
time: 7ms
memory: 3460kb
input:
54779 1 18216 1 33853 33108 23039 37117 156 44391 17623 5416 1 19432 1 24168 13739 1 12720 44312 18887 22291 26962 30471 37148 19709 29747 27326 18197 23346 1843 41656 9336 4575 27534 1 11952 40591 39743 1 3857 1 1288 1016 16393 29248 28010 23189 8681 40546 39901 52274 31527 48760 1 2039 7907 1 2032...
output:
26294
result:
ok 1 number(s): "26294"
Test #38:
score: 0
Accepted
time: 7ms
memory: 3568kb
input:
57690 40150 52498 16632 54094 38690 1 23443 28303 31668 1 11112 41664 12088 33016 45501 52999 53592 18432 37315 13660 47209 24147 1 40030 43524 1 54100 14288 58042 19578 34921 24592 46968 1 23110 40279 6792 36262 10198 1 40086 50581 1 1 1 26890 52951 35472 55669 27636 29305 29019 54953 17079 2786 43...
output:
27713
result:
ok 1 number(s): "27713"
Test #39:
score: 0
Accepted
time: 7ms
memory: 3468kb
input:
53382 1 1282 46907 3780 30433 42586 22936 1 28708 6819 54949 56150 23788 35333 1 48588 2140 1 33070 49569 22592 12549 28613 6258 31716 10327 5975 16959 38384 8987 45164 36117 37360 41041 30606 42399 48426 45802 30129 16690 53884 56389 39654 45059 32793 47594 21089 20242 40677 41508 26406 40941 47703...
output:
25612
result:
ok 1 number(s): "25612"
Test #40:
score: 0
Accepted
time: 5ms
memory: 3572kb
input:
62138 44369 35231 2042 51915 26036 16361 45002 31455 51689 36122 6320 35698 26424 1 32302 33405 15874 54367 7635 18358 16660 52804 5241 23456 19875 10029 34922 58902 35419 1 42808 29371 11232 1 4203 2749 38742 7746 38028 38921 52913 1412 25722 10513 31588 13840 5913 1 1 22428 5515 55584 727 1 45970 ...
output:
29833
result:
ok 1 number(s): "29833"
Test #41:
score: 0
Accepted
time: 8ms
memory: 3460kb
input:
62179 1 14280 42120 30857 34590 45510 1 53326 29165 49619 27152 10323 37394 52161 24824 1 46163 7070 1 1 50825 22752 1 19653 1 22455 1 1 30699 51251 47772 52051 24198 46485 26452 6383 23065 8964 4287 8597 21072 39587 48113 8366 26373 1 48042 25544 9898 46533 12945 24631 10505 1135 1 3083 27560 27891...
output:
29821
result:
ok 1 number(s): "29821"
Test #42:
score: 0
Accepted
time: 8ms
memory: 3508kb
input:
64855 17938 44210 54716 47717 41588 21809 1 19458 20705 1 1 31337 24499 8896 43825 9099 23208 56638 5230 1 12952 12519 35199 52493 46357 8644 42937 24084 40067 12865 1 1 30713 34059 7198 26430 30482 29826 19313 50735 14735 41322 33574 15499 750 1829 41780 19427 18386 10749 541 32317 1314 1 4930 4846...
output:
30989
result:
ok 1 number(s): "30989"
Test #43:
score: 0
Accepted
time: 3ms
memory: 3468kb
input:
61969 61263 55531 49642 1 16343 22235 47828 44565 54101 53618 22839 57760 15619 65877 53148 42990 61592 46449 55797 6766 12831 38140 28212 28705 27083 59522 23361 57310 12019 49032 36549 28898 52352 47864 44817 1 622 1 33898 1 9198 5588 34763 28629 13148 18381 48502 1 4722 17957 14612 18339 15859 1 ...
output:
29704
result:
ok 1 number(s): "29704"
Test #44:
score: 0
Accepted
time: 8ms
memory: 3568kb
input:
68210 60336 19927 22082 3979 42484 48718 62345 18906 12102 43900 1653 20397 45166 1902 24892 26975 18119 22549 550 38156 36970 1 50502 62398 60002 1 48151 27006 22301 32611 40846 25066 35342 64880 23718 40801 7835 49795 40422 8839 1 22578 1 66454 1 43156 40021 50847 1 1 32499 28280 21626 28461 47633...
output:
32816
result:
ok 1 number(s): "32816"
Test #45:
score: 0
Accepted
time: 8ms
memory: 3516kb
input:
63973 21322 6436 48990 66109 46204 1 35152 3260 21399 10474 53563 7703 18472 63411 27832 25790 13249 50798 39179 21004 1 6321 3445 33468 41869 43144 15310 16971 1 12745 19792 25224 29565 1 12268 18703 24046 49333 34823 58779 15528 18955 47388 1 11073 50637 33016 57081 41436 1 1 50019 1 67314 15667 3...
output:
30587
result:
ok 1 number(s): "30587"
Test #46:
score: 0
Accepted
time: 7ms
memory: 3468kb
input:
55603 27152 45126 5401 38220 11733 25419 1 4650 1 48888 44795 23211 52440 17689 64939 23268 1 65391 24564 7177 19492 17976 58895 34844 33170 37457 50666 1932 1 16991 65642 1 17327 61370 1 57709 22047 1 5464 28353 56560 3550 1 7768 20935 25516 34157 1 47866 58724 1 34410 30899 30194 60077 15992 45120...
output:
26551
result:
ok 1 number(s): "26551"
Test #47:
score: 0
Accepted
time: 8ms
memory: 3500kb
input:
64943 15764 46971 2337 9940 15753 48314 56012 52367 14398 24416 14567 64446 31753 24378 34535 4232 62737 40035 37827 44930 1 1 25135 44891 53854 64197 1 56782 18937 30388 13249 1 19849 33556 24385 59363 30034 38899 1 54201 1 62098 54283 1 10386 913 62974 1 1 1 15328 24714 38440 2761 67040 19838 6659...
output:
31051
result:
ok 1 number(s): "31051"
Test #48:
score: 0
Accepted
time: 5ms
memory: 3504kb
input:
65070 42043 1296 67765 64425 3333 6182 57129 1 61621 48172 1 64573 18438 2705 21982 36869 47344 31710 56207 55687 24015 1 52161 36411 55396 1 1 5793 1 37408 55875 61278 1 1 54575 24354 70438 59052 15709 29381 64013 67694 62819 24490 38530 60686 66105 1 33528 72253 41906 40707 14513 20096 1 24420 131...
output:
31267
result:
ok 1 number(s): "31267"
Test #49:
score: 0
Accepted
time: 9ms
memory: 3444kb
input:
77303 17206 64454 68575 21653 5757 1 15654 49063 1 36788 59099 58232 28707 12112 18441 2686 65096 70166 66321 20674 42711 43983 59906 73307 1 1 48382 74127 7413 28960 9471 7786 1486 21055 4998 19375 958 73525 20741 43052 2715 39017 8550 62117 1 54438 50950 6579 1 56711 1 1 10669 1 21981 1 54031 6028...
output:
37134
result:
ok 1 number(s): "37134"
Test #50:
score: 0
Accepted
time: 9ms
memory: 3448kb
input:
76963 1 25228 20715 69832 8823 40550 39893 48522 64061 18772 28058 12136 32826 33465 47101 66088 24228 37643 48704 7139 70757 62496 37912 36255 28984 1 63982 57128 28334 45574 35958 35070 1 41412 12672 57666 1 24358 36331 1 39768 1 24564 20555 29717 11472 31931 57890 13039 1 49198 30548 1 22690 3102...
output:
36948
result:
ok 1 number(s): "36948"
Test #51:
score: 0
Accepted
time: 4ms
memory: 3504kb
input:
70810 1 4548 75695 47385 63764 28060 17967 68734 74043 80103 43718 22613 77216 1 41956 47841 72770 1 40924 73454 15359 35564 18393 4585 45423 1 13827 64870 22441 16207 75286 24138 7525 30522 13091 30250 63231 1 46410 17809 61048 35183 23025 11586 13787 34886 72461 28937 43492 38269 33598 76879 26939...
output:
33929
result:
ok 1 number(s): "33929"
Test #52:
score: 0
Accepted
time: 6ms
memory: 3524kb
input:
82976 12666 70145 27125 31212 24521 35562 70003 1 60305 55241 1 53560 67797 75686 21137 4748 1 58864 23607 75395 32130 15017 41334 76377 71206 76243 3967 5399 34370 61136 40177 17984 13547 12684 51185 61531 19850 56309 29752 56224 38557 49222 52154 75483 39949 69759 23361 33263 58889 42378 46093 1 2...
output:
39893
result:
ok 1 number(s): "39893"
Test #53:
score: 0
Accepted
time: 9ms
memory: 3452kb
input:
72400 580 42092 54705 28902 32136 23907 2268 53855 49441 4908 32932 14170 51327 31637 1 14956 57693 47838 23039 8560 9300 2357 10190 51440 1 10389 25607 43353 54845 61119 1 15882 33554 51809 25946 8658 25708 56711 4570 46440 59971 432 57511 1 1 1 47104 49917 7394 21579 10377 49636 1 3634 47183 14208...
output:
34704
result:
ok 1 number(s): "34704"
Test #54:
score: 0
Accepted
time: 9ms
memory: 3512kb
input:
79441 1 42019 1 658 67439 66549 68897 56195 15086 46539 30946 47061 29319 16484 73997 43079 12414 53999 45714 31993 9713 32921 31321 54731 66697 46733 1 65536 26725 38022 69619 70138 16670 15503 56943 31764 1121 12073 1 40122 32061 26182 35309 1 49688 59588 66348 1 5118 43260 1 23818 1 10589 50331 1...
output:
38286
result:
ok 1 number(s): "38286"
Test #55:
score: 0
Accepted
time: 5ms
memory: 3448kb
input:
66189 1 10536 61887 77618 39485 17710 20735 70522 64909 79292 1 26182 25277 7892 14679 15937 17626 66058 49112 20511 71714 64569 31451 30328 77865 54542 16599 51680 1494 60671 19106 44309 50497 42126 72777 11029 75473 19555 72849 14212 67103 5423 67310 56511 1 75273 30171 60412 70629 6022 42213 6644...
output:
31788
result:
ok 1 number(s): "31788"
Test #56:
score: 0
Accepted
time: 10ms
memory: 3600kb
input:
84087 78144 8279 40425 22724 53590 6133 76360 68683 59020 31930 1 25247 37902 61350 50195 58608 1 2180 77951 9223 46567 60642 23345 34934 35337 53016 58253 3818 53817 1 34419 53410 1 1 33481 51760 26811 1 36181 1 4326 66438 65249 62300 51394 1 60909 79583 30599 5532 61168 39972 42369 57174 1 1 63250...
output:
40502
result:
ok 1 number(s): "40502"
Test #57:
score: 0
Accepted
time: 7ms
memory: 3552kb
input:
90363 28098 24426 49723 2446 24373 19645 47157 37521 43594 82938 74987 24040 20298 9505 1 18961 42462 79565 50775 68767 48701 80250 78525 32946 71293 62089 39443 829 71518 19691 57783 1 54001 26214 60637 28794 16883 1 3042 4694 677 51707 4386 28147 15462 64728 13738 32733 1498 77653 1 29113 1528 627...
output:
43396
result:
ok 1 number(s): "43396"
Test #58:
score: 0
Accepted
time: 7ms
memory: 3524kb
input:
85912 44384 76614 13633 75074 57851 14177 1 74230 32948 67916 48272 29199 48074 74718 1 1 51898 1 55140 6285 79826 83523 71258 25518 1 47815 15748 8855 42143 49625 40686 9212 67138 77173 157 81720 3901 25179 66760 81459 17932 73265 38816 31695 1 59936 54508 14690 55760 1 85025 50506 12994 1 14999 27...
output:
41328
result:
ok 1 number(s): "41328"
Test #59:
score: 0
Accepted
time: 7ms
memory: 3572kb
input:
94224 70848 54447 7301 83860 88557 21062 51965 20496 87549 32926 89583 25139 972 61402 61831 58038 69381 62504 40960 27523 61714 17139 63569 21084 48908 56918 29787 51412 25490 45359 1 26716 44327 1 10385 65731 80682 33917 56814 42744 1 13151 62042 53555 62646 46887 31826 88341 1 56526 72943 1 17349...
output:
45297
result:
ok 1 number(s): "45297"
Test #60:
score: 0
Accepted
time: 8ms
memory: 3584kb
input:
94580 16220 42460 9370 4214 1463 76064 75452 66559 1 82881 1352 26233 16142 83829 37853 90446 61287 3814 6289 75894 1 66592 9397 77499 45703 32423 4136 1 2511 9930 7979 88302 43868 10407 89560 10269 6064 91673 64046 7900 6625 18030 12311 57275 32778 69761 18558 1 84717 31664 19320 1 1 45868 74810 1 ...
output:
45518
result:
ok 1 number(s): "45518"
Test #61:
score: 0
Accepted
time: 8ms
memory: 3504kb
input:
98103 43668 57171 5378 38908 44459 93719 30632 1 61513 9839 45172 24075 42903 1 30982 30061 1 20638 35736 37716 75410 3791 39660 15645 57376 1 76249 44442 84663 52051 19991 8612 86808 43843 28434 75805 4120 61179 46577 24177 4947 27448 34324 1 6322 69869 65707 20220 77097 3587 34214 1 68719 8109 836...
output:
47176
result:
ok 1 number(s): "47176"
Test #62:
score: 0
Accepted
time: 11ms
memory: 3504kb
input:
99627 1 12383 72011 41346 53740 60606 25127 56698 66253 70878 9931 1 547 26763 8618 47299 1 74751 31606 32139 49672 80643 38716 1 6763 5681 51458 1 33704 49333 1 1 20917 12618 55257 1 46003 35060 20287 32712 4050 10206 77481 23456 69357 1 1 37250 16851 58382 7601 72197 69589 44746 1 42472 66667 5523...
output:
47855
result:
ok 1 number(s): "47855"
Test #63:
score: 0
Accepted
time: 10ms
memory: 3544kb
input:
91596 40688 89271 92939 21398 35879 40640 12591 36567 76856 51435 16586 18248 15891 1 91535 57448 37923 58950 30541 72158 85406 22504 75813 76337 41990 1127 23941 70008 1 1 49198 23730 45802 1 42991 10056 31585 1 79732 37197 30544 22539 1 54322 8101 58170 64215 92578 47598 83035 77548 70280 78953 68...
output:
44000
result:
ok 1 number(s): "44000"
Test #64:
score: 0
Accepted
time: 8ms
memory: 3568kb
input:
98822 61812 68429 93264 1 1 38904 28433 26126 73838 23389 64704 6175 1 69898 63661 7192 62804 24980 14399 22092 1 1 54796 89893 64186 48995 87837 1 58063 351 84554 50765 82310 78750 77352 1 1 1 1 20524 38368 26826 1 39465 56944 49128 86591 1 63089 52952 18879 47615 23556 53273 61791 27832 1 26988 87...
output:
47482
result:
ok 1 number(s): "47482"
Test #65:
score: 0
Accepted
time: 9ms
memory: 3552kb
input:
97681 13218 2341 72716 1 3127 60557 4467 73726 83844 74227 40042 32360 1 66238 3614 21344 36540 79231 28223 61298 16245 32522 4661 46920 59819 42157 82145 80396 25727 68167 1 86242 59815 33046 26261 18097 25344 86177 21494 9545 74741 77986 32272 55671 74710 46123 61914 32835 9723 16220 42929 28323 6...
output:
46945
result:
ok 1 number(s): "46945"
Test #66:
score: 0
Accepted
time: 7ms
memory: 3544kb
input:
92684 48333 48519 1 1 39877 15994 91656 1 1 82140 41595 69102 56580 76153 67638 87095 29987 82268 69591 84519 1 91310 1 1 40351 1 48679 88999 3318 6428 52211 61862 1 41080 44149 1 88455 87163 58622 1 27688 47073 48408 20585 932 15701 54943 89409 77008 11685 46340 70553 58289 38154 28803 45912 33656 ...
output:
44551
result:
ok 1 number(s): "44551"
Test #67:
score: 0
Accepted
time: 12ms
memory: 3576kb
input:
99567 48035 24306 65577 44512 43714 84067 30688 30879 1 24034 27666 10192 23029 61712 1 1 17986 12972 24823 54126 57334 28335 86657 13004 4308 65893 70898 73083 39254 77075 4208 59545 29173 1 66958 1 1 1 1 66120 3295 67474 76608 10784 5870 77848 1 23010 2629 61558 39441 1 18244 77164 69593 84488 533...
output:
47867
result:
ok 1 number(s): "47867"
Test #68:
score: 0
Accepted
time: 10ms
memory: 3520kb
input:
92740 1 31258 14006 16925 21906 9150 30583 1 71059 45261 1 55157 12372 15174 43583 1 75227 5755 25188 51215 4686 54777 30252 51463 762 86081 1 4326 90515 55553 57956 56871 88882 43291 66113 1 5306 7002 1243 92666 8219 4890 70355 1 27850 65007 8742 60106 65218 52605 57864 19641 9229 88399 67994 48543...
output:
44689
result:
ok 1 number(s): "44689"
Test #69:
score: 0
Accepted
time: 6ms
memory: 3516kb
input:
84696 82857 26060 1 1 54250 23907 21165 23814 1 67852 38119 83542 78849 16712 48058 68152 88707 19991 87590 1835 53404 1 79821 6880 19710 69823 1 46861 16318 17095 88394 698 58223 24473 61895 54674 55173 65488 1 35730 52213 1 71170 85323 75430 25497 39723 80245 3033 32955 47677 71961 43228 37443 807...
output:
40730
result:
ok 1 number(s): "40730"
Test #70:
score: 0
Accepted
time: 11ms
memory: 3516kb
input:
98655 68882 71729 1 59082 5848 4231 78 55391 27222 45199 4760 1792 26338 15238 82408 64041 60211 32442 19951 31248 73928 91962 16514 1 1398 29926 1 1 3017 88041 72698 1 49474 66969 34190 1 13254 50729 6228 73849 2885 1 85750 51242 76299 14430 1 29802 1217 66384 1 73298 65825 22146 31403 1 1 17206 14...
output:
47423
result:
ok 1 number(s): "47423"
Test #71:
score: 0
Accepted
time: 9ms
memory: 3464kb
input:
75771 1 14327 69446 69123 53160 78429 72044 4239 17940 80833 47986 1 27688 30655 20542 9585 44747 81122 8642 72873 6791 45200 48088 87123 1311 50980 51917 81032 26577 1 85377 35279 33158 1 61284 60863 50168 60952 1 69586 43209 5854 85857 69335 92948 68220 1 76918 72860 13010 1096 30787 18710 64193 3...
output:
36450
result:
ok 1 number(s): "36450"
Test #72:
score: 0
Accepted
time: 9ms
memory: 3584kb
input:
78956 53047 77999 199 70758 84265 73924 5756 28464 1 6268 44899 1 90578 92213 29378 41706 57998 28014 71263 90754 41791 960 84665 92800 1 1 4456 77517 61549 69268 30205 1 10786 1 15346 45555 67234 83299 81312 79084 16988 87538 23520 15633 4339 23834 43557 40580 56869 40332 1 27678 1 349 31243 44000 ...
output:
38109
result:
ok 1 number(s): "38109"
Test #73:
score: 0
Accepted
time: 10ms
memory: 3528kb
input:
88398 50733 1 60665 57283 1406 41324 70498 57423 22092 1 48532 72243 83608 72799 66786 34848 35278 77242 60798 91243 1 55977 48560 75000 58069 87781 88978 90112 71025 88786 3179 459 74932 24835 38449 1 14766 70046 34798 28613 26253 4110 1 50772 1 46834 44162 76281 33152 19807 33677 1 70693 71847 979...
output:
42475
result:
ok 1 number(s): "42475"
Test #74:
score: 0
Accepted
time: 7ms
memory: 3540kb
input:
99853 75141 59152 1 50542 70720 3720 34929 6473 68832 39197 23442 7067 76792 63264 55639 89470 42243 6538 23172 57056 15844 1 89091 1 35443 89420 58991 42839 95686 22945 70046 69551 60402 66847 1 91416 81335 30239 5828 56707 1 24022 68841 2158 70800 1 25016 15335 92094 49007 1 1 50850 12083 63438 12...
output:
47983
result:
ok 1 number(s): "47983"
Test #75:
score: 0
Accepted
time: 9ms
memory: 3600kb
input:
98651 1 41946 58045 1 12658 62783 1 76633 27234 6072 41205 4088 86327 1 1 56956 1455 69542 8741 1 1 2457 91536 68709 75352 55033 52921 49372 1 64090 15391 92896 7753 12271 82108 86262 71215 13414 1 1 1 1 85686 21728 46858 1 38678 6632 82715 15272 61926 68925 54294 58873 56157 91696 94053 26797 53310...
output:
47440
result:
ok 1 number(s): "47440"
Test #76:
score: 0
Accepted
time: 12ms
memory: 3600kb
input:
99231 1 19632 1 40301 43170 1 1 3526 1 48038 9659 79658 68543 18186 77075 80646 23561 3412 77280 8891 1 1 45757 47825 60406 15144 62204 76755 57532 44310 60037 33286 1 53502 9793 67976 66037 1 1 83629 17173 31503 36179 79807 89604 1 84232 89659 43394 53429 1 61539 1 37342 84061 52210 1 37018 1 9251 ...
output:
47504
result:
ok 1 number(s): "47504"
Test #77:
score: 0
Accepted
time: 5ms
memory: 3600kb
input:
94276 88939 13069 68464 9267 1 82144 55982 58287 86972 1 36268 68293 25672 1 92149 74370 80497 60234 32770 86006 76718 16371 42110 66046 22395 36724 38565 8672 30958 1 37185 89996 61158 1 1 5905 90882 24595 78326 56037 6309 11777 30139 26440 75037 80347 83770 1 92986 1 69912 46966 5898 1 29392 55081...
output:
45380
result:
ok 1 number(s): "45380"
Test #78:
score: 0
Accepted
time: 11ms
memory: 3532kb
input:
98802 3561 46638 49453 5996 21285 72391 30879 53542 9172 9217 68596 71482 33323 6961 39972 68909 29311 10566 41783 15195 1 8101 7380 26846 5840 33621 52819 77822 6185 50434 71487 1 46818 48131 1 49401 19329 71690 39107 1 77046 34379 35025 13834 1 29058 37320 40667 58488 54701 29858 51287 10296 47233...
output:
47366
result:
ok 1 number(s): "47366"
Test #79:
score: 0
Accepted
time: 12ms
memory: 3532kb
input:
99382 21648 1 1947 1 13170 1 65625 16768 68542 5099 29574 54557 15941 74351 1 71490 47977 54322 34017 37209 1 1 14400 1 8522 3503 82278 1 7242 31079 8120 58253 10911 74141 43428 73735 42055 23262 690 62242 37614 21173 5092 65341 1 22349 29310 26322 65351 41149 44220 11212 1 28432 18411 46529 7405 56...
output:
47709
result:
ok 1 number(s): "47709"
Test #80:
score: 0
Accepted
time: 10ms
memory: 3588kb
input:
88881 24850 6493 9189 1 52320 57673 47056 95944 81578 28269 1 24246 25367 67510 79940 1 60247 45858 70412 39163 37356 80033 39345 83018 455 53737 8043 95695 34369 34833 40808 83441 44482 7033 69336 47873 15195 83974 13642 1 1 25900 78446 36417 89520 31770 72149 50674 17947 1 34766 6330 92177 62469 7...
output:
42893
result:
ok 1 number(s): "42893"
Test #81:
score: 0
Accepted
time: 10ms
memory: 3500kb
input:
79901 4656 1 95478 89534 1 47868 44718 1 55437 77794 11805 30633 13007 1 82792 13471 50051 11810 70377 64496 46200 20648 52820 24899 1 1 85932 46997 61404 57296 79807 60714 81259 1 52860 1 38186 62439 21968 35301 56528 1925 33382 92466 1 51914 50758 66771 24360 1 18538 1 55251 1 60069 53156 41261 29...
output:
38463
result:
ok 1 number(s): "38463"
Test #82:
score: 0
Accepted
time: 11ms
memory: 3568kb
input:
95333 6678 24335 44696 1 49657 20176 2101 1 6861 22359 49022 24621 20705 31596 36752 37285 43392 61839 38000 43908 25955 56978 68051 10495 4944 1 66690 57659 7661 46743 58285 11154 61891 14580 23587 71375 70062 24089 17987 54635 1 40636 7822 52742 1 50892 72793 40181 57900 28091 21594 1 1 1 58212 22...
output:
45774
result:
ok 1 number(s): "45774"
Test #83:
score: 0
Accepted
time: 11ms
memory: 3548kb
input:
95559 42230 17852 11537 83143 72414 630 1 12162 24116 65481 1 64187 18253 24867 60195 56483 15301 41562 66222 54209 34812 68829 74731 77345 1 5010 87481 87397 49623 72952 32619 1 73519 12887 38456 1 13312 55699 65579 61982 1 60487 58369 4341 46900 19671 28120 22168 22573 36128 87355 48622 8649 1 421...
output:
45965
result:
ok 1 number(s): "45965"
Test #84:
score: 0
Accepted
time: 11ms
memory: 3536kb
input:
97370 80636 1 1 18067 1 89512 58439 15662 41103 88846 1 91512 89611 49662 33884 44595 12298 72615 29873 72597 58624 1 12238 41139 84143 79077 81764 30946 1 1 12898 85033 38854 1 8899 19630 34287 72496 2698 47046 51414 1 55447 38101 36828 25622 1061 3732 72121 1 366 71513 23919 75053 14577 68779 8752...
output:
46885
result:
ok 1 number(s): "46885"
Test #85:
score: 0
Accepted
time: 11ms
memory: 3536kb
input:
97385 4756 47001 41421 52576 733 72578 1 61948 26795 59280 53423 80628 36061 72344 56738 48162 52290 67867 71424 74013 52239 51030 45773 37119 39880 57683 74996 31244 22077 55610 1 65536 19499 13462 44087 67833 67360 10437 23288 37038 48991 1 29030 63656 21603 1 7480 30972 33745 18872 49407 20924 17...
output:
46713
result:
ok 1 number(s): "46713"
Test #86:
score: 0
Accepted
time: 10ms
memory: 3568kb
input:
79354 60765 86448 8794 10274 79416 26147 74144 72105 42865 90975 23393 52914 80514 63951 23200 52669 1 2345 1 85886 89288 64091 58779 2892 89122 39192 49735 1 72306 1 66292 92404 67492 69495 58168 75791 38191 35362 92882 68230 62587 51360 67658 75790 43242 82950 82981 3254 64455 17285 15584 1 10535 ...
output:
38158
result:
ok 1 number(s): "38158"
Test #87:
score: 0
Accepted
time: 11ms
memory: 3604kb
input:
93932 1 2112 56719 11968 67246 51645 19524 1415 37202 11915 1 28876 36650 24857 64817 73982 31271 65893 62246 336 62984 74897 19980 56346 5749 18402 30821 1 1 18571 29586 973 1 10288 9530 72687 8384 50656 40311 2223 740 10811 1 40210 71101 13329 28127 40512 16671 43890 1 8067 36686 1 49227 40604 297...
output:
45008
result:
ok 1 number(s): "45008"
Test #88:
score: 0
Accepted
time: 11ms
memory: 3540kb
input:
91326 1 34072 26703 82473 48138 16415 1 23367 48009 85166 74195 48204 39846 82325 53142 20067 46967 27966 3111 48643 93160 18466 1 1 1 27761 1 1 73818 5672 39731 82949 12084 1 85591 86182 1 35616 20287 60624 68889 66086 38607 27312 5849 83564 85193 4418 1 65268 1 1088 1 2835 80744 95777 91014 32834 ...
output:
43893
result:
ok 1 number(s): "43893"
Test #89:
score: 0
Accepted
time: 11ms
memory: 3604kb
input:
98275 34589 88987 45973 35308 22824 75539 2273 13783 12571 57742 33105 22738 24877 1 92993 91194 71705 6416 78965 87847 27008 71917 40774 54309 12424 42012 27438 1 32291 58971 66883 17488 35401 11902 37429 31572 84259 59264 57410 7272 58147 75610 51441 71650 10281 22210 42376 47441 91549 52181 80558...
output:
47106
result:
ok 1 number(s): "47106"
Test #90:
score: 0
Accepted
time: 11ms
memory: 3608kb
input:
99860 43036 10243 51936 7513 1 59832 77726 84827 65870 8674 25117 28674 1 17682 1788 32107 33488 63610 18483 82346 8751 57686 1 74089 45058 13085 29908 21031 53727 8134 1 34468 61255 29101 262 68268 23362 55065 27783 7141 79213 38926 7207 43440 49423 1 40542 67269 68498 48159 21537 47626 70503 77408...
output:
48054
result:
ok 1 number(s): "48054"
Test #91:
score: 0
Accepted
time: 7ms
memory: 3540kb
input:
87998 15569 39355 53586 17973 1 86556 13735 19381 8416 41604 60599 73752 69283 9498 86320 69372 59389 70872 74197 16582 45969 61861 61102 18871 85525 10318 2718 72022 61658 51363 34155 31478 30592 8482 12081 22599 63962 32700 59715 1 15714 35479 1 1 41683 83849 4028 62953 49737 62516 61666 1 24577 1...
output:
42319
result:
ok 1 number(s): "42319"
Test #92:
score: 0
Accepted
time: 8ms
memory: 3604kb
input:
96093 22830 83113 63556 70281 59005 7790 71655 78955 1 98082 67478 57394 88574 36407 12859 64814 79863 3793 43723 49728 98999 88495 1 21716 2024 24099 77666 64561 72122 40332 91598 1 93951 15470 38939 3643 58920 38556 51092 54070 98169 41877 29589 99206 21138 1 1 46050 50615 98748 53085 93320 23646 ...
output:
46200
result:
ok 1 number(s): "46200"
Test #93:
score: 0
Accepted
time: 11ms
memory: 3588kb
input:
98874 18687 90434 33015 6968 62415 46786 85953 24299 45112 68670 70467 81643 39251 9738 45101 3572 7266 40888 24081 98384 1 48597 73414 19143 56365 1 1 42212 1 71376 1 1480 56630 51 11182 95585 20184 11834 79684 70090 3671 18856 3646 1 46012 82062 1 6310 94633 34084 1 61542 1 59650 43119 1 88563 956...
output:
47547
result:
ok 1 number(s): "47547"
Test #94:
score: 0
Accepted
time: 11ms
memory: 3600kb
input:
93231 41776 3013 15504 1 80549 22035 5820 7593 25427 77226 2299 26115 11172 41856 1 10908 21015 73064 79883 70733 49333 67456 9303 42208 40288 44124 20511 7853 1 23047 25595 35629 10370 80450 33708 1 1 3540 78716 25571 54384 1 1 68009 1 28321 53452 49930 1 4986 22273 16364 74884 1 78354 77273 78847 ...
output:
44549
result:
ok 1 number(s): "44549"
Test #95:
score: 0
Accepted
time: 11ms
memory: 3588kb
input:
85972 30808 14778 52823 64674 23455 14784 1 25930 84162 2030 64079 83660 1 2939 46916 32018 1 86234 29003 52814 70595 62513 62404 67623 71510 59363 74662 82157 42935 1 81740 25082 21839 58495 28057 58389 1 1 76 60038 73588 11394 2057 1 35187 81945 1 44513 35214 54964 619 1 1 58650 51587 5529 6580 30...
output:
41472
result:
ok 1 number(s): "41472"
Test #96:
score: 0
Accepted
time: 11ms
memory: 3588kb
input:
93259 256 13865 69446 16386 41407 20441 53922 55309 45822 51001 19038 45583 1 26538 53734 1 10839 1 74766 24973 7623 32356 55764 1 448 1915 74217 29904 42694 49544 1 1 37001 19277 6329 11048 1 21187 6294 48360 26021 65570 70675 1 35777 4237 4787 29900 1909 35894 55037 10034 70893 1 46572 14679 1 158...
output:
44799
result:
ok 1 number(s): "44799"
Test #97:
score: 0
Accepted
time: 11ms
memory: 3548kb
input:
92784 9103 11157 68891 1 26608 49855 25921 86770 6104 1 84060 68053 92463 1 1 8110 15366 56025 1 23478 1 15406 1 32309 21798 67039 44572 26105 51741 71318 1 75463 32418 64837 55783 1818 46366 66558 31711 53175 15587 79199 3288 1 66091 33571 17494 65205 70864 87837 1016 19826 47471 1 70138 80335 1 61...
output:
44745
result:
ok 1 number(s): "44745"
Test #98:
score: 0
Accepted
time: 5ms
memory: 3548kb
input:
96422 80308 41839 1 10318 41696 77866 18135 1 84868 9715 5858 529 87150 46120 68571 4573 55749 62639 1 52465 1 60844 38780 65833 13780 54570 81593 4393 80496 41201 54586 1 56400 67340 6809 79389 42602 46552 50353 35170 22639 39012 1 85426 47407 51702 20455 45648 49585 74082 87217 66942 42179 40370 8...
output:
46367
result:
ok 1 number(s): "46367"
Test #99:
score: 0
Accepted
time: 7ms
memory: 3552kb
input:
91493 87374 20079 1 43458 1 51828 1 80994 83085 32292 40416 25615 20722 88099 29520 55248 28833 18554 4506 20364 40259 1 55926 27943 4486 1 71264 1 65308 26374 1 22511 33083 51318 35071 81720 1 48532 1 1 86142 85157 24183 18250 40603 5539 57587 25298 52880 73951 64221 1 1 1 82849 30360 41312 33847 1...
output:
44102
result:
ok 1 number(s): "44102"
Test #100:
score: 0
Accepted
time: 11ms
memory: 3528kb
input:
97438 34140 46543 10397 4710 1 71014 1 85750 77173 27850 43467 12028 1 41378 7383 1418 53048 93265 75982 36841 67338 58793 39870 92403 61176 97552 40171 67186 86336 66999 1 97710 60170 4432 10621 25906 1 23394 49950 87872 12940 59137 44081 65282 90485 45581 84190 74232 32778 16697 87481 1 604 1 7320...
output:
46951
result:
ok 1 number(s): "46951"
Test #101:
score: 0
Accepted
time: 11ms
memory: 3604kb
input:
92303 7487 1 31551 25921 15102 6014 77331 13302 10563 35981 43088 49441 70135 40461 63867 45178 72493 68954 36699 58226 26051 17426 57598 80983 3526 1 9156 66156 41446 34683 41378 39143 67713 35198 24241 49918 1 23322 1 8475 58498 1 1306 21001 1577 69435 65642 1 38640 2973 1 1 1 54468 36308 71935 70...
output:
44413
result:
ok 1 number(s): "44413"
Test #102:
score: 0
Accepted
time: 11ms
memory: 3536kb
input:
94697 66498 43872 3511 1006 24664 29630 81693 95954 81874 14619 26004 91644 39163 49154 79608 24505 43866 21669 32870 1 25452 1 4535 19722 1 94101 19072 63925 84041 20450 42738 62635 29452 7922 91073 31814 5675 1 21738 91189 4462 13163 54190 31289 1 15583 10120 6748 43242 49834 83763 81224 60009 689...
output:
45512
result:
ok 1 number(s): "45512"
Extra Test:
score: 0
Extra Test Passed