QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505471#5869. Expensive Dinnerxiaowuc130 ✓795ms4680kbC++171.0kb2024-08-05 05:36:472024-08-05 05:36:47

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 13
Accepted

Test #1:

score: 13
Accepted
time: 5ms
memory: 4680kb

input:

100
3
6
16
1000
361
960
840
624
841
841
191
164
730
824
384
361
527
713
529
786
589
523
859
299
527
1
168
289
120
569
360
169
523
643
594
31
667
359
128
863
589
342
635
913
289
360
288
48
243
961
589
493
529
323
288
529
961
294
961
840
661
288
961
361
643
289
80
342
342
288
323
802
169
857
527
961
8...

output:

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

result:

ok 100 lines

Subtask #2:

score: 17
Accepted

Test #2:

score: 17
Accepted
time: 795ms
memory: 4624kb

input:

1000
2187
677538058128
6859
35695615700
107170462901
656889177169
997398231197
614687111999
750525936241
707281
130321
618092368171
311453708415
376298378296
24388
680821145243
520767355621
576854974912
3124
966766797049
83667935838
841647565147
63994326840
749351147141
847888044229
214358880
800896...

output:

Case #1: 33
Case #2: 67070
Case #3: 48
Case #4: 17743
Case #5: 29073
Case #6: 66127
Case #7: 79982
Case #8: 64143
Case #9: 70275
Case #10: 212
Case #11: 119
Case #12: 64310
Case #13: 47085
Case #14: 51333
Case #15: 69
Case #16: 67226
Case #17: 59482
Case #18: 62296
Case #19: 37
Case #20: 78859
Case ...

result:

ok 1000 lines

Extra Test:

score: 0
Extra Test Passed