QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#214443#6526. Canvasucup-team456#WA 6ms26960kbC++205.7kb2023-10-14 19:42:072023-10-14 19:42:07

詳細信息

Test #1:

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

input:

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

output:

7
4 2 1 3 
5
2 1 

result:

ok Correct. (2 test cases)

Test #2:

score: 0
Accepted
time: 3ms
memory: 26880kb

input:

1
10 13
1 1 2 2
2 1 3 2
1 2 3 1
3 1 4 2
4 1 5 2
5 1 6 2
4 2 6 1
7 1 8 2
8 1 9 2
7 2 9 1
5 2 9 1
8 2 10 2
1 1 10 1

output:

19
13 8 5 4 3 2 1 7 6 11 10 9 12 

result:

ok Correct. (1 test case)

Test #3:

score: 0
Accepted
time: 3ms
memory: 26940kb

input:

1
7 5
2 1 6 2
1 2 6 1
1 1 5 1
2 2 7 1
1 1 7 2

output:

8
3 2 1 4 5 

result:

ok Correct. (1 test case)

Test #4:

score: -100
Wrong Answer
time: 6ms
memory: 26884kb

input:

1
7 6
2 1 7 2
2 1 4 2
1 2 4 1
2 1 6 1
1 1 6 2
2 2 6 1

output:

9
4 3 4 2 1 6 5 

result:

wrong answer 5 is not in the permutation. (test case 1)