QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#689743#7624. Mystery of Primeucup-team4511#RE 7ms8516kbC++203.1kb2024-10-30 18:25:342024-10-30 18:25:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 5764kb

input:

6
1 5 1 4 4 1

output:

2

result:

ok 1 number(s): "2"

Test #2:

score: 0
Accepted
time: 0ms
memory: 5600kb

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: 5696kb

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: 5796kb

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: 5864kb

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: 2ms
memory: 6404kb

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: 5864kb

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: 0ms
memory: 5952kb

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: 3ms
memory: 5944kb

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: 5948kb

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: 6060kb

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: 6740kb

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: 6216kb

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: 4ms
memory: 6492kb

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: 4ms
memory: 6348kb

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: 6292kb

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: 6520kb

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: 6772kb

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: 0ms
memory: 6820kb

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: 6892kb

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: 5ms
memory: 6772kb

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: 6892kb

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: 2ms
memory: 7156kb

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: 0ms
memory: 7004kb

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: 7396kb

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: 7252kb

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: 5ms
memory: 7068kb

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: 7556kb

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: 8036kb

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: 7856kb

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: 5ms
memory: 7276kb

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: 6ms
memory: 7684kb

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: 8516kb

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: 7ms
memory: 8048kb

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: -100
Runtime Error

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:


result: