QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#345966#6526. Canvasezteam1#WA 3ms6484kbC++143.7kb2024-03-07 18:17:502024-03-07 18:17:51

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 6408kb

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 1 2 3 
5
2 1 

result:

ok Correct. (2 test cases)

Test #2:

score: 0
Accepted
time: 1ms
memory: 6116kb

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

result:

ok Correct. (1 test case)

Test #3:

score: 0
Accepted
time: 1ms
memory: 6172kb

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: 0
Accepted
time: 1ms
memory: 6124kb

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 1 3 2 6 5 

result:

ok Correct. (1 test case)

Test #5:

score: 0
Accepted
time: 2ms
memory: 6376kb

input:

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

output:

7
4 3 1 5 2 

result:

ok Correct. (1 test case)

Test #6:

score: 0
Accepted
time: 1ms
memory: 6484kb

input:

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

output:

8
1 5 6 3 4 2 

result:

ok Correct. (1 test case)

Test #7:

score: -100
Wrong Answer
time: 3ms
memory: 6176kb

input:

2000
15 16
2 2 3 1
12 2 15 1
3 2 9 1
6 2 14 1
2 1 15 2
5 2 6 1
7 1 10 1
9 2 15 1
2 2 3 1
4 2 12 1
2 2 9 1
5 2 8 2
3 2 13 1
12 1 13 2
9 2 13 1
5 1 14 2
15 15
5 2 11 1
1 2 8 1
8 1 15 2
6 2 8 2
8 2 9 1
1 1 6 2
6 1 9 2
2 2 5 1
2 1 10 2
7 2 10 1
1 1 15 2
5 2 15 1
7 1 11 2
1 1 2 1
5 2 9 1
15 14
3 1 5 2
1 ...

output:

23
7 9 6 4 16 11 9 1 15 13 14 2 3 8 5 12 
20
14 1 13 10 9 8 13 11 10 3 6 2 5 7 4 
21
2 6 10 2 11 13 9 12 5 14 8 4 1 5 
18
7 10 12 14 13 6 4 8 7 2 11 1 5 2 
21
6 17 8 4 5 3 6 2 16 1 10 13 11 14 17 14 12 9 15 
21
3 9 14 5 13 8 4 8 2 6 11 7 12 1 
21
3 8 1 5 12 2 15 7 6 11 9 13 4 12 10 
19
11 7 10 9 15 ...

result:

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