QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#413764#3032. Cheese Gameucup-team572#AC ✓102ms4744kbC++20771b2024-05-18 03:27:042024-05-18 03:27:05

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

20
2
2 1
1
1000000
4
3 2 4 3
8
1000000 1000000 1000000 1000000 1000000 1000000 1000000 1000000
8
1000000 1000000 1000000 1 1000000 1000000 1000000 1000000
9
723059 133070 898168 961394 18457 175012 478043 176230 377374
8
289384 930887 692778 636916 747794 238336 885387 760493
8
516650 641422 202363 ...

output:

2
1000000
8
5000000
5000000
2691397
3314426
2475496
4999998
10
3
1
2
8
4000001
15
3213803
24
3000002
4

result:

ok 20 lines

Test #2:

score: 0
Accepted
time: 102ms
memory: 4744kb

input:

20
100000
859485 390674 819590 695284 505824 962572 577989 53378 307332 754253 103728 302519 19948 48169 659522 389802 262161 848413 224854 965949 70782 789156 772974 876205 410327 900390 392837 362222 582187 762071 74734 958024 152744 410676 169659 174919 373247 264000 744649 196931 18252 848376 15...

output:

33024883937
33135467117
66667000000
33237375393
58332975002
33104918259
33172888838
33156623430
33090460100
33042109608
32999667097
33111199056
3333366667
32982135568
33144273501
56831006063
33108905993
33124668910
33126313979
33069028435

result:

ok 20 lines