QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505526#5943. Reordering Train Carsxiaowuc135 ✓2ms3848kbC++175.4kb2024-08-05 05:56:192024-08-05 05:56:20

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 0ms
memory: 3540kb

input:

100
7
yyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy yyyyyyyyyyyyyyyyyyyyyyyyyyyyy llllllllllllllllllluuuuuuuuuuuuuuuwwwwwwwwwwwwwwwwwwwww nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnnn qqqqbbbbbbttoooaaagggggccccccccdddddjjjjjjjjjpppphhhhhmmmmmmmmkkkkkkvvvvfffrrrrrrrrrsssszzzzzzziii lllllllllllllllllllll wwwwwwww...

output:

Case #1: 12
Case #2: 1
Case #3: 362880
Case #4: 1
Case #5: 362880
Case #6: 24
Case #7: 6
Case #8: 1
Case #9: 5040
Case #10: 2
Case #11: 2
Case #12: 240
Case #13: 2
Case #14: 1
Case #15: 24
Case #16: 2
Case #17: 2
Case #18: 0
Case #19: 1
Case #20: 1
Case #21: 720
Case #22: 1
Case #23: 0
Case #24: 2
C...

result:

ok 100 lines

Subtask #2:

score: 25
Accepted

Test #2:

score: 25
Accepted
time: 2ms
memory: 3848kb

input:

100
84
iiiiiiiiiiiiiiiiiiiii eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii iiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiiii jjjjjjjjjjjjjjjjj...

output:

Case #1: 118899581
Case #2: 453427928
Case #3: 330796662
Case #4: 466874498
Case #5: 0
Case #6: 871850937
Case #7: 512838659
Case #8: 180172049
Case #9: 3628800
Case #10: 8
Case #11: 1
Case #12: 147103896
Case #13: 1244160
Case #14: 461238464
Case #15: 296105231
Case #16: 993377250
Case #17: 3007054...

result:

ok 100 lines

Extra Test:

score: 0
Extra Test Passed