QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#745245#8818. Colorful Graph 3Z_301WA 3ms3636kbC++141.7kb2024-11-14 08:35:022024-11-14 08:35:04

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

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

output:

4
1 4 1
4 3 1
3 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: 3ms
memory: 3544kb

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:

7 2 1
10
1 7 1
7 6 1
6 5 1
5 1 2
1 4 1
4 1 2
1 3 1
3 1 2
1 2 1
2 1 2

result:

wrong answer Integer parameter [name=m] equals to 7, violates the range [0, 4] (test case 1)