QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505503#5919. Ticket Swappingxiaowuc119 ✓5ms3628kbC++172.7kb2024-08-05 05:48:312024-08-05 05:48:33

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 1ms
memory: 3628kb

input:

20
46 100
22 44 9
15 27 12
14 16 67
30 43 19
29 42 86
4 46 17
9 11 27
39 44 67
6 31 79
12 32 98
6 25 3
2 6 8
30 42 61
10 31 47
35 38 65
17 37 82
24 30 54
5 22 49
10 18 83
6 36 62
17 18 65
3 45 69
22 39 69
18 30 43
15 18 66
15 22 57
23 35 4
3 16 40
11 18 94
6 27 7
18 27 81
8 45 73
9 41 27
8 40 36
7 1...

output:

Case #1: 374109
Case #2: 0
Case #3: 0
Case #4: 0
Case #5: 1168678
Case #6: 13856
Case #7: 609706
Case #8: 31894
Case #9: 6
Case #10: 355852
Case #11: 167782
Case #12: 363254
Case #13: 1267105
Case #14: 10
Case #15: 449411
Case #16: 1761134
Case #17: 41508
Case #18: 14616
Case #19: 87869
Case #20: 55...

result:

ok 20 lines

Subtask #2:

score: 11
Accepted

Test #2:

score: 11
Accepted
time: 5ms
memory: 3596kb

input:

20
623835206 533
9725655 396984917 325857722
80901955 572452228 965754925
460805004 536191305 642974222
367256313 486511323 533419663
212268426 594696689 743902267
145428804 268128004 203711366
471782352 602047757 824191453
508600213 617799115 134311753
67779629 499823067 79782187
49814124 275045527...

output:

Case #1: 166838273
Case #2: 874324672
Case #3: 543169129
Case #4: 350921978
Case #5: 0
Case #6: 604843850
Case #7: 947705068
Case #8: 909060677
Case #9: 0
Case #10: 172964418
Case #11: 140194301
Case #12: 871796180
Case #13: 259372755
Case #14: 668859844
Case #15: 302446952
Case #16: 130187753
Case ...

result:

ok 20 lines

Extra Test:

score: 0
Extra Test Passed