QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#408386#6765. Don't Really Like How The Story Endsmaisui12138WA 58ms9532kbC++171.5kb2024-05-10 09:24:272024-05-10 09:24:29

詳細信息

Test #1:

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

input:

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

output:

0
2
1

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 58ms
memory: 9532kb

input:

117747
3 7
2 1
3 3
1 3
1 1
3 2
1 1
3 1
4 8
2 3
4 3
3 2
4 2
1 3
2 1
4 3
2 4
3 4
2 3
2 2
3 3
1 1
2 5
1 1
2 2
2 2
1 2
2 2
3 7
2 1
1 2
3 3
3 2
1 2
3 3
3 2
4 5
1 2
3 3
4 4
1 4
2 1
3 1
3 2
1 3
1 1
1 1
1 1
1 6
1 1
1 1
1 1
1 1
1 1
1 1
5 4
2 1
2 5
1 3
3 2
4 7
1 1
2 4
3 2
1 1
1 1
4 2
2 3
5 8
3 3
2 2
4 2
1 4
1...

output:

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

result:

wrong answer 12th lines differ - expected: '1', found: '2'