QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505525#5942. Part Elfxiaowuc120 ✓12ms10780kbPython3388b2024-08-05 05:55:402024-08-05 05:55:41

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 12ms
memory: 10768kb

input:

100
3/4
7/256
17/32
3/4
9/128
3/8
1/64
165/754
1/8
1/4
7/16
242/381
1/128
1/512
273/512
1/128
43/256
5/256
193/842
1/32
1/32
1/64
9/32
1/128
25/128
290/591
3/32
1/64
5/256
1/2
27/152
3/16
7/512
211/957
1/2
7/512
21/64
1/4
5/16
33/128
449/638
81/512
7/16
29/32
7/16
305/359
1/8
1/16
55/59
1/66
31/128
...

output:

Case #1: 1
Case #2: 6
Case #3: 1
Case #4: 1
Case #5: 4
Case #6: 2
Case #7: 6
Case #8: impossible
Case #9: 3
Case #10: 2
Case #11: 2
Case #12: impossible
Case #13: 7
Case #14: 9
Case #15: 1
Case #16: 7
Case #17: 3
Case #18: 6
Case #19: impossible
Case #20: 5
Case #21: 5
Case #22: 6
Case #23: 2
Case #...

result:

ok 100 lines

Subtask #2:

score: 12
Accepted

Test #2:

score: 12
Accepted
time: 11ms
memory: 10780kb

input:

100
3363361584/104366129152
371215353/60470329344
77140/199229440
13240630/446676598784
1338560/175447736320
681224/714315137024
200667390/1334307840
127216980000/430645248000
18262/49392123904
205427337/2020999168
296451985/30356683264
242801100/795610644480
92/184
5645085892/395516180602
33820156/...

output:

Case #1: 5
Case #2: 8
Case #3: 12
Case #4: 16
Case #5: 17
Case #6: 20
Case #7: 3
Case #8: 2
Case #9: 22
Case #10: 4
Case #11: 7
Case #12: 12
Case #13: 1
Case #14: impossible
Case #15: 9
Case #16: 20
Case #17: 6
Case #18: 4
Case #19: 2
Case #20: 3
Case #21: 12
Case #22: 12
Case #23: 11
Case #24: impo...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed