QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744219#8818. Colorful Graph 3Z_301WA 13ms3716kbC++141.5kb2024-11-13 21:13:042024-11-13 21:13:07

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

4
1 2 1
2 3 1
3 4 1
4 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: 13ms
memory: 3716kb

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

result:

wrong answer your solution is suboptimal (test case 2)