QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505578#5962. Ominous Ominoxiaowuc134 ✓0ms3616kbC++171.8kb2024-08-05 06:11:562024-08-05 06:11:58

詳細信息

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 0ms
memory: 3560kb

input:

64
2 2 2
2 1 3
4 4 1
3 2 3
1 4 3
2 1 1
4 3 4
4 1 1
2 4 2
3 1 2
2 3 2
4 3 1
4 1 2
1 2 4
4 3 2
1 4 4
3 1 3
4 2 2
4 1 4
1 1 3
1 1 2
3 4 3
3 4 2
1 1 4
4 3 3
3 4 4
2 4 3
1 3 2
2 2 3
2 2 1
3 3 2
1 2 3
4 2 4
1 1 1
2 3 3
1 2 2
2 4 4
1 4 1
2 1 2
1 2 1
2 3 1
4 1 3
2 3 4
1 3 3
3 3 3
3 1 4
3 2 2
4 4 2
2 2 4
4 4...

output:

Case #1: GABRIEL
Case #2: RICHARD
Case #3: RICHARD
Case #4: GABRIEL
Case #5: GABRIEL
Case #6: RICHARD
Case #7: GABRIEL
Case #8: RICHARD
Case #9: GABRIEL
Case #10: RICHARD
Case #11: GABRIEL
Case #12: RICHARD
Case #13: RICHARD
Case #14: GABRIEL
Case #15: RICHARD
Case #16: GABRIEL
Case #17: RICHARD
Cas...

result:

ok 64 lines

Subtask #2:

score: 26
Accepted

Test #2:

score: 26
Accepted
time: 0ms
memory: 3616kb

input:

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

output:

Case #1: GABRIEL
Case #2: RICHARD
Case #3: RICHARD
Case #4: GABRIEL
Case #5: GABRIEL
Case #6: RICHARD
Case #7: RICHARD
Case #8: RICHARD
Case #9: RICHARD
Case #10: GABRIEL
Case #11: RICHARD
Case #12: RICHARD
Case #13: RICHARD
Case #14: GABRIEL
Case #15: RICHARD
Case #16: RICHARD
Case #17: RICHARD
Cas...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed