QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505433#5791. Multi-base happinessxiaowuc127 ✓1558ms3724kbC++171.8kb2024-08-05 05:19:562024-08-05 05:19:57

详细

Subtask #1:

score: 9
Accepted

Test #1:

score: 9
Accepted
time: 2ms
memory: 3724kb

input:

42
7 10
6 7 8
2 4 7
4 7 9
2 10
6 7 9
7 8 9
2 3 8
3 10
4 7
8 10
3 4
3 6 10
3 4 7
6 9
2 5 10
7 9 10
3 6 8
2 8 9
2 7 8
2 5 6
2 6 9
2 4 9
4 5 8
2 3 5
4 7 10
3 7 10
2 4 6
3 6
3 6 9
4 9
4 8 9
3 8 10
4 5 6
2 6
5 8
3 4 6
6 10
2 4 8
2 8 10
7 8 10
5 6 10

output:

Case #1: 7
Case #2: 47089
Case #3: 7
Case #4: 125
Case #5: 7
Case #6: 2753
Case #7: 6393
Case #8: 27
Case #9: 13
Case #10: 7
Case #11: 97
Case #12: 3
Case #13: 79
Case #14: 143
Case #15: 415
Case #16: 7
Case #17: 1337
Case #18: 3879
Case #19: 27
Case #20: 1001
Case #21: 49
Case #22: 415
Case #23: 3
...

result:

ok 42 lines

Subtask #2:

score: 18
Accepted

Test #2:

score: 18
Accepted
time: 1558ms
memory: 3704kb

input:

500
2 3 4 7 8 9
2 3 5 7 9 10
3 5 9
2 5 7 8 9
3 4 7 9 10
2 3 5 6 7 8 10
2 3 4 5 6 7 8
2 7 8 9
2 3 4 9 10
3 4 5 7 8 10
5 6 8
2 3 4 5 7 8 10
2 4 6 7 9 10
4 5 6 7 9
2 3 4 10
2 3 4 5 7
2 3 6 9
2 3 5 6 9
2 4 5 10
2 4 6 7 8
5 6 7 8
3 5 6 7 10
2 4 5 7 8 9 10
2 3 8 9 10
2 3 6 7 8
2 6 7 8 9 10
2 3 4 6 9 10
3 ...

output:

Case #1: 35785
Case #2: 120149
Case #3: 27
Case #4: 6393
Case #5: 1337
Case #6: 2688153
Case #7: 58775
Case #8: 6393
Case #9: 91
Case #10: 120407
Case #11: 1975
Case #12: 120407
Case #13: 71735
Case #14: 37131
Case #15: 13
Case #16: 143
Case #17: 707
Case #18: 1695
Case #19: 7
Case #20: 47089
Case #...

result:

ok 500 lines

Extra Test:

score: 0
Extra Test Passed