QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#504515#1646. Disk SortZhangYiDeWA 0ms3700kbC++175.4kb2024-08-04 13:38:402024-08-04 13:38:40

详细

Test #1:

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

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

input:

2
1 2
1 2
1 2

output:

0

result:

ok n=2

Test #3:

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

input:

3
2 2 1
1 3 3
1 2 3

output:

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

result:

ok n=3

Test #4:

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

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

input:

3
1 3 2
2 3 3
2 1 1

output:

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

result:

ok n=3

Test #6:

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

input:

3
3 1 1
2 3 2
3 1 2

output:

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

result:

ok n=3

Test #7:

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

input:

3
3 2 1
2 3 2
1 1 3

output:

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

result:

ok n=3

Test #8:

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

input:

3
1 2 3
2 1 2
1 3 3

output:

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

result:

ok n=3

Test #9:

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

input:

3
1 3 1
3 2 2
2 3 1

output:

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

result:

ok n=3

Test #10:

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

input:

3
2 3 1
3 1 3
2 2 1

output:

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

result:

ok n=3

Test #11:

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

input:

3
1 3 2
3 1 3
1 2 2

output:

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

result:

ok n=3

Test #12:

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

input:

3
1 2 3
3 1 1
2 3 2

output:

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

result:

ok n=3

Test #13:

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

input:

3
3 1 2
1 3 1
3 2 2

output:

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

result:

ok n=3

Test #14:

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

input:

3
1 2 3
3 3 1
1 2 2

output:

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

result:

ok n=3

Test #15:

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

input:

3
3 1 2
2 2 3
3 1 1

output:

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

result:

ok n=3

Test #16:

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

input:

3
1 3 2
2 2 3
1 3 1

output:

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

result:

ok n=3

Test #17:

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

input:

3
1 3 2
3 2 3
1 1 2

output:

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

result:

ok n=3

Test #18:

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

input:

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

output:

18
1 5
1 5
4 1
4 5
4 1
2 4
2 4
3 4
5 2
3 5
3 2
4 3
4 3
5 3
4 5
5 4
5 4
5 4

result:

ok n=4

Test #19:

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

input:

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

output:

17
4 5
3 5
2 4
2 3
2 5
4 2
3 2
1 2
1 4
1 3
4 1
3 1
4 3
4 1
5 4
5 4
5 4

result:

ok n=4

Test #20:

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

input:

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

output:

18
4 5
3 4
3 5
1 3
1 5
1 3
4 1
4 1
2 4
2 1
2 4
3 2
4 2
3 4
3 2
5 3
5 3
5 3

result:

ok n=4

Test #21:

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

input:

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

output:

22
1 5
1 5
2 5
4 1
2 4
2 1
3 2
3 2
4 2
5 3
4 5
4 3
2 4
2 4
3 4
5 2
3 2
3 5
5 3
4 3
5 4
5 3

result:

wrong answer Rod #1 not solved