QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#332217#8083. KaChang!MaMengQiAC ✓8ms4500kbC++20991b2024-02-19 12:05:292024-02-19 12:05:30

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3508kb

input:

5 1000
998 244 353 1111 2333

output:

3

result:

ok single line: '3'

Test #2:

score: 0
Accepted
time: 3ms
memory: 4324kb

input:

99944 47127
3230263 4167211 318112 1816147 3062424 2654981 611161 1333247 307357 964695 310768 3246001 4434829 2337929 2153212 2867974 1494571 1933027 2229761 2770791 2522917 2577041 2260821 2699229 24345 2976015 1982841 583857 1146088 4318594 113313 3202197 1297531 2606975 4583005 387155 4597011 31...

output:

100

result:

ok single line: '100'

Test #3:

score: 0
Accepted
time: 7ms
memory: 4320kb

input:

99972 59328
13412024 7699775 6975180 9151217 10772363 1954133 2948178 6187923 7745447 13804005 4862926 8944126 9737862 8655257 8051344 2465176 548147 3459226 11381866 6053870 11689406 485660 10792838 33031 10363001 8737260 4238124 10263773 273176 1312990 1076554 9928015 6298676 10913121 668201 22415...

output:

234

result:

ok single line: '234'

Test #4:

score: 0
Accepted
time: 7ms
memory: 4484kb

input:

99919 1
50214918 46199266 934484497 594641585 611306761 149066347 13205505 84623727 502986331 341842051 953833651 211264041 70882617 540482309 924602413 287992263 18243991 156555840 320450817 64383551 381431667 574236769 61548721 9807076 4564531 91174401 657532300 56493721 113482657 64745976 1727382...

output:

1000000000

result:

ok single line: '1000000000'

Test #5:

score: 0
Accepted
time: 8ms
memory: 4500kb

input:

99985 78653
49172566 23414514 194047400 123389217 322649053 163017931 100707549 116694773 412889660 72018407 188008432 377374801 54420301 141077403 218020251 19379390 201226933 295309553 9639397 420190967 112464725 191545025 109717950 82394955 138597761 60281535 33488239 24473109 61466926 226293265 ...

output:

5483

result:

ok single line: '5483'

Test #6:

score: 0
Accepted
time: 7ms
memory: 4396kb

input:

99958 87460
58567906 62123479 64026657 26757304 99920257 25418524 40898428 24861623 83320489 6015808 43187424 82658191 30652801 33304916 98619317 45746311 45530274 27732409 52348378 6901381 11419650 3620486 488936 36699979 51800810 46382449 21068791 9695788 100105547 51190504 93256215 42643877 95675...

output:

1174

result:

ok single line: '1174'

Test #7:

score: 0
Accepted
time: 3ms
memory: 4364kb

input:

99977 68571
57715 93669 12871 27448 69951 48585 42313 5903 86733 62049 2773 62584 39161 50719 67669 46429 52785 86009 26558 25609 26800 75593 41451 79987 20402 80259 1926 100051 20149 70472 2654 1404 76948 75937 8577 89375 51903 40925 84821 87393 78031 75291 77989 34999 51708 23502 61438 77997 9506 ...

output:

2

result:

ok single line: '2'

Test #8:

score: 0
Accepted
time: 6ms
memory: 4384kb

input:

99902 92333
5517 73426 50950 33849 18920 38144 25678 59373 23969 33061 60026 68219 44854 63105 16322 21544 42390 5725 6631 38886 66644 66701 26566 62538 48805 36765 46422 24808 64320 9046 28788 71588 23089 33926 49934 54163 62252 58546 31032 60613 31175 65389 13966 12497 23000 78052 42023 80009 3517...

output:

2

result:

ok single line: '2'

Test #9:

score: 0
Accepted
time: 7ms
memory: 4460kb

input:

99940 14999
81717676 50644032 7155721 164369919 180260998 16565627 42839108 81069733 7853123 74893305 86112664 66315703 154618657 53363616 183767382 44325404 89619691 93379478 22658701 6784021 89684414 95038646 173033253 65896637 46177375 62808310 138954635 110541407 104610731 51969708 37819430 1195...

output:

14111

result:

ok single line: '14111'

Test #10:

score: 0
Accepted
time: 6ms
memory: 4420kb

input:

99968 72780
61905 26618 655 51952 73106 63148 75201 28366 52868 11548 17122 35406 939 39732 25873 31210 55114 15557 68763 6279 30804 57250 67794 49858 40849 63381 39422 24168 22913 35652 82175 17883 37058 28999 32862 56710 53354 2648 17155 52148 59460 15637 45081 21198 68003 47705 15676 45277 34771 ...

output:

2

result:

ok single line: '2'

Test #11:

score: 0
Accepted
time: 5ms
memory: 4296kb

input:

99909 30561
795 1823 2257 1059 2783 2775 2291 2054 1783 1335 2150 2937 2505 1143 2301 1905 1399 2778 163 472 1599 1554 154 2761 1539 2266 1573 223 1077 3087 1991 2717 45 461 2376 1135 277 2811 1119 2497 1661 1132 711 1748 3111 1553 2981 2831 1728 1497 583 1191 1639 631 1783 1335 237 235 3107 2711 19...

output:

2

result:

ok single line: '2'

Extra Test:

score: 0
Extra Test Passed