QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744139#8818. Colorful Graph 3Z_301WA 12ms3596kbC++141.3kb2024-11-13 20:58:372024-11-13 20:58:39

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3
4 2
1 1
2 2
0 0
5 2
3 1

output:

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

result:

ok orz (3 test cases)

Test #2:

score: -100
Wrong Answer
time: 12ms
memory: 3596kb

input:

4645
2 2
0 0
2 2
0 1
2 2
1 1
3 2
0 0
3 2
0 1
3 2
1 1
3 3
0 0 0
3 3
1 0 0
3 3
1 0 1
3 3
1 1 1
4 2
0 0
4 2
1 0
4 2
1 1
4 3
0 0 0
4 3
0 0 1
4 3
0 1 1
4 3
1 1 1
4 4
0 0 0 0
4 4
0 1 0 0
4 4
1 1 0 0
4 4
1 1 1 0
4 4
1 1 1 1
5 2
0 0
5 2
1 0
5 2
1 1
5 3
0 0 0
5 3
0 1 0
5 3
1 1 0
5 3
1 1 1
5 4
0 0 0 0
5 4
0 1...

output:

2
1 2 1
2 1 2
1
2 1 2
1
2 1 1
4
1 2 1
2 1 2
1 3 1
3 1 2
3
3 1 2
1 2 1
2 1 2
2
3 1 1
2 1 2
3
1 2 1
2 3 2
3 1 3
1
3 1 1
2
3 1 1
2 1 3
2
3 1 1
2 1 2
6
1 2 1
2 1 2
1 3 1
3 1 2
1 4 1
4 1 2
5
4 1 1
1 2 1
2 1 2
1 3 1
3 1 2
4
4 1 1
3 1 2
1 2 1
2 1 2
3
1 2 1
2 3 2
3 1 3
4
4 1 3
1 2 1
2 3 2
3 1 3
2
4 1 2
3 1 ...

result:

wrong answer no path between point 1 and 2 has fewer than 1 edges colored 1 (test case 8)