QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505564#5969. Brattleshipxiaowuc133 ✓14ms10644kbPython3216b2024-08-05 06:09:022024-08-05 06:09:04

详细

Subtask #1:

score: 11
Accepted

Test #1:

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

input:

55
1 4 2
1 7 7
1 5 2
1 8 1
1 8 2
1 10 9
1 9 7
1 8 7
1 9 3
1 9 8
1 3 3
1 5 1
1 6 1
1 2 1
1 6 6
1 7 2
1 8 6
1 6 5
1 6 4
1 6 2
1 10 2
1 8 8
1 10 3
1 4 4
1 1 1
1 9 9
1 10 4
1 3 2
1 7 3
1 7 6
1 6 3
1 8 3
1 9 1
1 8 5
1 10 1
1 5 3
1 10 6
1 4 1
1 10 10
1 8 4
1 5 4
1 5 5
1 9 5
1 10 8
1 2 2
1 10 5
1 3 1
1 7 5...

output:

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

result:

ok 55 lines

Subtask #2:

score: 22
Accepted

Test #2:

score: 22
Accepted
time: 14ms
memory: 10644kb

input:

100
1 4 2
1 7 7
2 5 1
1 20 1
1 7 2
20 5 5
16 5 1
13 19 3
15 18 2
4 13 2
2 6 4
10 1 1
12 12 2
15 16 9
13 2 2
4 7 5
15 15 7
11 15 3
3 4 3
19 6 5
3 13 2
12 19 16
1 20 10
1 13 5
20 10 10
3 19 15
6 3 1
15 3 1
19 9 7
12 5 1
20 20 10
19 5 3
10 20 10
10 4 3
7 18 7
4 3 1
20 20 20
7 19 19
19 7 3
20 9 3
1 6 2
...

output:

Case #1: 3
Case #2: 7
Case #3: 10
Case #4: 20
Case #5: 5
Case #6: 24
Case #7: 80
Case #8: 81
Case #9: 136
Case #10: 26
Case #11: 6
Case #12: 10
Case #13: 73
Case #14: 24
Case #15: 14
Case #16: 9
Case #17: 37
Case #18: 57
Case #19: 6
Case #20: 24
Case #21: 20
Case #22: 28
Case #23: 11
Case #24: 7
Cas...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed