QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505442#5845. Fencexiaowuc129 ✓735ms4220kbC++172.5kb2024-08-05 05:23:292024-08-05 05:23:29

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 7
Accepted

Test #1:

score: 7
Accepted
time: 1ms
memory: 3824kb

input:

50
2162792864001 45
76 24 86 18 66 78 10 58 50 72 84 44 12 60 28 82 70 16 36 46 98 40 8 20 54 62 74 90 68 42 26 52 6 48 30 94 56 4 2 96 100 32 88 34 14
10000000001 3
51 23 100
3900000000300 2
30 39
33356539273699 100
70 29 39 60 64 11 45 80 76 34 82 99 14 35 95 78 92 7 41 63 52 96 4 100 81 46 71 54 ...

output:

Case #1: IMPOSSIBLE
Case #2: 100000004
Case #3: 100000000010
Case #4: 333565392737
Case #5: 576442173616
Case #6: 299099335529
Case #7: 481280444555
Case #8: 919239671499
Case #9: 19287321886
Case #10: 133667949343
Case #11: 10000407315
Case #12: IMPOSSIBLE
Case #13: 123456790071
Case #14: 311482514...

result:

ok 50 lines

Subtask #2:

score: 22
Accepted

Test #2:

score: 22
Accepted
time: 735ms
memory: 4220kb

input:

50
83906688722385 97
66420 87377 3434 51902 76927 31394 336 12250 45361 85252 45002 25489 80680 60797 87630 65365 71127 28633 18151 11450 61585 95532 37216 99650 3114 28510 19997 35846 27862 23775 4184 45965 34653 23305 85567 99916 68354 17304 49121 73208 43191 4428 98785 25621 96888 82635 54412 308...

output:

Case #1: 839772297
Case #2: 123456797263
Case #3: 1000000000000000000
Case #4: 10000046
Case #5: IMPOSSIBLE
Case #6: 198127071
Case #7: 290512064
Case #8: IMPOSSIBLE
Case #9: IMPOSSIBLE
Case #10: IMPOSSIBLE
Case #11: 10000305628
Case #12: 10000070103
Case #13: 70052289
Case #14: IMPOSSIBLE
Case #15:...

result:

ok 50 lines

Extra Test:

score: 0
Extra Test Passed