QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#74701#2353. Maharajas are Going HomeLoverInTimeWA 290ms23268kbC++201.6kb2023-02-03 13:33:332023-02-03 13:33:35

详细

Test #1:

score: 100
Accepted
time: 290ms
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: 260ms
memory: 23076kb

input:

1
1
1 1

output:

-1 -1 -1

result:

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

Test #3:

score: -100
Wrong Answer
time: 275ms
memory: 23268kb

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 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 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
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 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 1
1 1 1
1 1 1
1 1 1
1 1 1
1 1 1
1 1 1
-1 -1 -1
1 1...

result:

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