QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#304376#5583. Color TubesDennisTran#TL 76ms37660kbC++207.9kb2024-01-13 18:44:462024-01-13 18:44:46

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 69ms
memory: 37660kb

input:

3
2 2 0
1 3 1
3 1 2
3 0 0

output:

16
1 4
1 4
2 1
3 2
3 1
2 3
2 3
2 1
4 2
4 2
3 4
3 2
3 4
4 3
4 3
4 3

result:

ok correct

Test #2:

score: 0
Accepted
time: 76ms
memory: 37568kb

input:

1
0 0 0
1 1 1

output:

3
2 1
2 1
2 1

result:

ok correct

Test #3:

score: -100
Time Limit Exceeded

input:

2
2 1 0
2 1 0
2 1 0

output:


result: