QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#640159#1186. Wizards Uniteucup-team4645#AC ✓116ms4396kbC++23698b2024-10-14 08:10:102024-10-14 08:10:11

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3676kb

input:

2
3 1
1 3 2
3 2
5 5 5

output:

3
5

result:

ok 2 number(s): "3 5"

Test #2:

score: 0
Accepted
time: 75ms
memory: 3752kb

input:

6939
96 80
845091311 154772720 564767569 641977540 427004967 104641947 499758413 329135171 834609918 463051053 448493752 838982398 600197071 832387578 941218803 251326523 318008279 552766647 575214495 68826858 91149015 325672019 97622188 812613783 307207441 498083074 847244802 725619418 395328134 71...

output:

1055456457
23328225807
45743739079
3323508561
5
3
25021583667
5
5
5
5
5
10
110385572919
137878097095
15
5
6
5
2
10
15
5
15
4
5
10
10
6
5
5
4
6164303441
4
15
85867700266
5
5
15
6
74972463895
0
6
15
6
260021112211
5
38317088973
18641291525
5
15
6
400776816736
4
5
5
284391219138
10
5
5
6
6
6
5
5
6
5
15...

result:

ok 6939 numbers

Test #3:

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

input:

10
99999 28996
813831395 626548637 117420459 360505529 772259915 397689810 481822116 463034147 66409808 418081772 488712536 757950316 64208357 733015070 89657456 567661293 584017387 602948075 617465428 543498076 737665976 179865846 114550628 38181869 955026101 117941537 243625578 355514773 856946932...

output:

25242794756702
442716409209
3729152173970
40750996436098
21266294542883
9180638416201
22821519531740
36534140190074
999988016
49929983260825

result:

ok 10 numbers