QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#744309#8818. Colorful Graph 3Z_301WA 16ms3640kbC++141.6kb2024-11-13 21:29:582024-11-13 21:29:58

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 16ms
memory: 3640kb

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

result:

wrong answer your solution is suboptimal (test case 24)