QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#705403#7898. I Just Want... One More...ucup-team1277WA 8ms7656kbC++201.9kb2024-11-02 23:19:362024-11-02 23:19:36

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 5668kb

input:

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

output:

6
0
4

result:

ok 3 number(s): "6 0 4"

Test #2:

score: -100
Wrong Answer
time: 8ms
memory: 7656kb

input:

10000
5 4
2 2
3 1
5 3
1 1
1 1
1 1
1 1
1 1
2 2
2 2
1 2
1 1
1 1
1 1
1 1
1 1
1 1
2 3
2 1
1 2
1 1
5 5
1 4
2 2
3 1
1 3
1 2
2 4
2 2
2 1
1 2
1 1
5 1
5 3
3 1
2 2
1 1
1 1
3 2
3 1
2 1
5 2
1 2
2 3
5 3
1 5
4 2
1 2
4 1
1 1
2 3
1 1
2 2
2 1
4 1
1 4
3 1
1 1
1 1
1 1
2 1
2 2
3 3
1 3
2 3
2 2
3 3
1 3
3 3
1 2
3 3
2 2
1 ...

output:

6
0
0
0
0
0
0
0
2
0
16
4
0
2
9
9
9
0
9
4
0
1
1
1
0
4
16
6
0
0
16
0
0
0
8
1
0
0
0
0
16
4
4
16
4
9
0
9
0
0
0
0
9
4
9
16
12
0
0
1
6
0
1
0
0
0
1
0
0
0
0
0
0
6
1
0
0
0
1
0
0
0
0
0
1
2
0
0
0
0
9
16
0
0
1
0
0
6
0
4
0
6
1
1
9
4
2
9
9
6
0
16
6
16
9
4
9
0
1
16
9
1
1
9
16
9
6
4
9
0
0
4
0
2
0
0
0
0
0
0
4
0
0
0
...

result:

wrong answer 4th numbers differ - expected: '2', found: '0'