QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505406#5770. Endless Knight xiaowuc125 ✓6ms3660kbC++175.1kb2024-08-05 05:08:522024-08-05 05:08:52

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 4ms
memory: 3636kb

input:

100
1 1 0
3 3 0
34 52 0
43 88 0
50 99 0
51 53 0
57 50 0
58 31 0
59 60 0
62 33 0
65 78 0
68 57 0
76 37 0
81 87 0
95 93 0
99 97 0
100 100 0
100 100 0
100 100 0
100 100 0
4 4 1
2 1
4 4 1
3 2
40 79 1
20 36
50 69 1
31 34
50 99 1
20 39
56 75 1
10 19
61 67 1
17 33
68 69 1
30 23
99 97 1
13 24
100 100 1
64 5...

output:

Case #1: 1
Case #2: 0
Case #3: 8217
Case #4: 0
Case #5: 1
Case #6: 9743
Case #7: 6569
Case #8: 29
Case #9: 1875
Case #10: 31
Case #11: 5448
Case #12: 3366
Case #13: 0
Case #14: 0
Case #15: 9464
Case #16: 0
Case #17: 5245
Case #18: 5245
Case #19: 5245
Case #20: 5245
Case #21: 2
Case #22: 1
Case #23: ...

result:

ok 100 lines

Subtask #2:

score: 20
Accepted

Test #2:

score: 20
Accepted
time: 6ms
memory: 3660kb

input:

100
1 1 0
3 3 0
20014 10009 0
120110 90075 0
120111 90077 0
120123 90101 0
12368644 24707278 0
23469128 46934184 0
34450477 68900956 0
50126734 62654635 0
63991047 67224812 0
64016824 32008411 0
66192671 77227515 0
87290124 95856473 0
88826492 83546101 0
88871082 44448920 0
88871083 44448919 0
99999...

output:

Case #1: 1
Case #2: 0
Case #3: 0
Case #4: 0
Case #5: 21
Case #6: 9916
Case #7: 0
Case #8: 0
Case #9: 0
Case #10: 4228
Case #11: 0
Case #12: 0
Case #13: 1674
Case #14: 6822
Case #15: 0
Case #16: 8920
Case #17: 915
Case #18: 1
Case #19: 0
Case #20: 7002
Case #21: 3997
Case #22: 3997
Case #23: 3997
Cas...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed