QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505489#5857. GoroSortxiaowuc130 ✓1ms3852kbC++17870b2024-08-05 05:43:002024-08-05 05:43:01

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

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

input:

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

output:

Case #1: 2.000000
Case #2: 2.000000
Case #3: 4.000000
Case #4: 0.000000
Case #5: 2.000000
Case #6: 2.000000
Case #7: 3.000000
Case #8: 3.000000
Case #9: 2.000000
Case #10: 2.000000
Case #11: 4.000000
Case #12: 3.000000
Case #13: 4.000000
Case #14: 4.000000
Case #15: 3.000000
Case #16: 3.000000
Case ...

result:

ok 100 lines

Subtask #2:

score: 20
Accepted

Test #2:

score: 20
Accepted
time: 1ms
memory: 3836kb

input:

99
2
2 1
3
1 3 2
4
2 1 4 3
4
1 2 3 4
4
1 2 4 3
4
1 3 2 4
4
1 3 4 2
4
1 4 2 3
4
1 4 3 2
4
2 1 3 4
4
2 1 4 3
4
2 3 1 4
4
2 3 4 1
4
2 4 1 3
4
2 4 3 1
4
3 1 2 4
4
3 1 4 2
4
3 2 1 4
4
3 2 4 1
4
3 4 1 2
4
3 4 2 1
4
4 1 2 3
4
4 1 3 2
4
4 2 1 3
4
4 2 3 1
4
4 3 1 2
4
4 3 2 1
50
1 2 3 4 5 6 7 8 9 10 11 12 13 ...

output:

Case #1: 2.000000
Case #2: 2.000000
Case #3: 4.000000
Case #4: 0.000000
Case #5: 2.000000
Case #6: 2.000000
Case #7: 3.000000
Case #8: 3.000000
Case #9: 2.000000
Case #10: 2.000000
Case #11: 4.000000
Case #12: 3.000000
Case #13: 4.000000
Case #14: 4.000000
Case #15: 3.000000
Case #16: 3.000000
Case ...

result:

ok 99 lines

Extra Test:

score: 0
Extra Test Passed