QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#88003#5751. Saving the Universexiaowuc125 ✓3ms3388kbC++17932b2023-03-14 22:59:152023-03-14 22:59:19

详细

Subtask #1:

score: 5
Accepted

Test #1:

score: 5
Accepted
time: 2ms
memory: 3328kb

input:

20
2
Googol Armenia
Dubai
0
2
Alibubu
Googol Belgium
5
Alibubu
Alibubu
Alibubu
Alibubu
Alibubu
3
Googol South Africa
Googol Tajikistan
Googol China
12
Googol Tajikistan
Googol South Africa
Googol Tajikistan
Googol Tajikistan
Googol Tajikistan
Googol Tajikistan
Googol China
Googol China
Googol China
...

output:

Case #1: 0
Case #2: 0
Case #3: 1
Case #4: 1
Case #5: 3
Case #6: 3
Case #7: 99
Case #8: 48
Case #9: 10
Case #10: 4
Case #11: 5
Case #12: 2
Case #13: 7
Case #14: 2
Case #15: 1
Case #16: 1
Case #17: 2
Case #18: 4
Case #19: 4
Case #20: 2

result:

ok 20 lines

Subtask #2:

score: 20
Accepted

Test #2:

score: 20
Accepted
time: 3ms
memory: 3388kb

input:

20
2
Googol Armenia
Dubai
0
2
Alibubu
Googol Belgium
5
Alibubu
Alibubu
Alibubu
Alibubu
Alibubu
3
Googol South Africa
Googol Tajikistan
Googol China
12
Googol Tajikistan
Googol South Africa
Googol Tajikistan
Googol Tajikistan
Googol Tajikistan
Googol Tajikistan
Googol China
Googol China
Googol China
...

output:

Case #1: 0
Case #2: 0
Case #3: 1
Case #4: 1
Case #5: 3
Case #6: 3
Case #7: 999
Case #8: 498
Case #9: 10
Case #10: 2
Case #11: 4
Case #12: 1
Case #13: 5
Case #14: 1
Case #15: 0
Case #16: 13
Case #17: 2
Case #18: 3
Case #19: 2
Case #20: 2

result:

ok 20 lines

Extra Test:

score: 0
Extra Test Passed