QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#504467#1646. Disk SortHuangHanShengWA 0ms4100kbC++206.6kb2024-08-04 13:18:512024-08-04 13:18:51

詳細信息

Test #1:

score: 100
Accepted
time: 0ms
memory: 4100kb

input:

4
2 3 1 4
2 1 1 4
2 3 3 4

output:

8
3 5
3 5
2 3
2 5
2 3
5 2
5 2
5 2

result:

ok n=4

Test #2:

score: 0
Accepted
time: 0ms
memory: 4032kb

input:

2
1 2
1 2
1 2

output:

0

result:

ok n=2

Test #3:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

3
2 2 1
1 3 3
1 2 3

output:

10
2 4
1 4
2 1
2 4
3 2
1 3
2 1
4 2
4 2
4 2

result:

ok n=3

Test #4:

score: 0
Accepted
time: 0ms
memory: 3812kb

input:

3
2 1 3
2 1 1
2 3 3

output:

8
2 4
2 4
3 2
3 4
3 2
4 3
4 3
4 3

result:

ok n=3

Test #5:

score: 0
Accepted
time: 0ms
memory: 4096kb

input:

3
1 3 2
2 3 3
2 1 1

output:

9
2 4
2 4
1 2
3 1
3 4
3 2
4 3
4 3
4 3

result:

ok n=3

Test #6:

score: -100
Wrong Answer
time: 0ms
memory: 4100kb

input:

3
3 1 1
2 3 2
3 1 2

output:

12
2 4
3 4
2 2
2 3
2 4
1 2
3 2
1 3
1 2
4 1
4 1
4 1

result:

wrong answer Invalid move #2