QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#74703#2353. Maharajas are Going HomeLoverInTimeWA 290ms23264kbC++201.6kb2023-02-03 13:35:422023-02-03 13:35:45

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 277ms
memory: 23260kb

input:

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

output:

3 1 1
-1 -1 -1
2 1 1

result:

ok 3 lines

Test #2:

score: 0
Accepted
time: 290ms
memory: 23208kb

input:

1
1
1 1

output:

-1 -1 -1

result:

ok single line: '-1 -1 -1'

Test #3:

score: -100
Wrong Answer
time: 287ms
memory: 23264kb

input:

100
1
5 5
1
1 5
1
5 4
1
4 4
1
2 2
1
5 3
1
4 5
1
2 4
1
4 1
1
3 2
1
3 2
1
1 4
1
2 5
1
4 2
1
5 3
1
5 5
1
4 2
1
3 4
1
3 4
1
4 2
1
3 1
1
1 5
1
1 4
1
4 1
1
4 5
1
2 5
1
5 1
1
4 1
1
2 4
1
2 5
1
3 4
1
2 5
1
5 4
1
4 4
1
2 3
1
3 4
1
5 4
1
1 3
1
3 4
1
1 5
1
5 1
1
2 3
1
3 1
1
1 1
1
5 2
1
2 5
1
1 4
1
3 3
1
4 3
1
...

output:

1 1 1
1 4 2
1 1 1
1 1 1
1 4 2
1 2 4
-1 -1 -1
1 1 1
1 1 1
-1 -1 -1
1 4 2
1 1 1
-1 -1 -1
-1 -1 -1
1 2 4
-1 -1 -1
1 4 2
1 1 1
1 1 1
1 4 2
1 1 1
-1 -1 -1
1 1 1
1 1 1
1 1 1
1 1 1
-1 -1 -1
1 1 1
-1 -1 -1
1 4 2
-1 -1 -1
1 1 1
1 4 2
1 1 1
1 2 4
1 1 1
1 2 4
1 1 1
1 1 1
1 1 1
1 1 1
1 2 4
1 1 1
1 1 1
-1 -1 -1
...

result:

wrong answer 2nd lines differ - expected: '1 1 1', found: '1 4 2'