QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#504372#1646. Disk SortGuanYunchangTL 0ms3620kbC++173.7kb2024-08-04 12:40:572024-08-04 12:40:58

详细

Test #1:

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

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: 3496kb

input:

2
1 2
1 2
1 2

output:

0

result:

ok n=2

Test #3:

score: -100
Time Limit Exceeded

input:

3
2 2 1
1 3 3
1 2 3

output:

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

result: