QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#122865#5911. Manage your EnergyAbrams35 ✓2ms5612kbC++171.0kb2023-07-11 13:15:452023-07-11 13:15:50

详细

Subtask #1:

score: 12
Accepted

Test #1:

score: 12
Accepted
time: 1ms
memory: 5576kb

input:

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

output:

Case #1: 18
Case #2: 18
Case #3: 19
Case #4: 18
Case #5: 19
Case #6: 18
Case #7: 12
Case #8: 15
Case #9: 20
Case #10: 10
Case #11: 500
Case #12: 131
Case #13: 131
Case #14: 95
Case #15: 95
Case #16: 111
Case #17: 115
Case #18: 40
Case #19: 15
Case #20: 12
Case #21: 28
Case #22: 15
Case #23: 4
Case #...

result:

ok 100 lines

Subtask #2:

score: 23
Accepted

Test #2:

score: 23
Accepted
time: 2ms
memory: 5612kb

input:

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

output:

Case #1: 18
Case #2: 18
Case #3: 19
Case #4: 18
Case #5: 19
Case #6: 18
Case #7: 12
Case #8: 15
Case #9: 20
Case #10: 10
Case #11: 500
Case #12: 131
Case #13: 131
Case #14: 95
Case #15: 95
Case #16: 111
Case #17: 115
Case #18: 7588093446180
Case #19: 19336419062320
Case #20: 82445121328592
Case #21:...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed