QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#262254#6526. Canvasucup-team1332#WA 4ms38520kbC++143.3kb2023-11-23 17:11:322023-11-23 17:11:34

详细

Test #1:

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

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: 0ms
memory: 38520kb

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 4 3 2 1 5 7 6 8 11 10 9 12 

result:

ok Correct. (1 test case)

Test #3:

score: -100
Wrong Answer
time: 4ms
memory: 36536kb

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:

5
1 1 1 1 3 

result:

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