QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#637879#7898. I Just Want... One More...ucup-team4780#WA 6ms10408kbC++171.2kb2024-10-13 14:18:032024-10-13 14:18:07

詳細信息

Test #1:

score: 100
Accepted
time: 2ms
memory: 10340kb

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: 6ms
memory: 10408kb

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
2
0
0
0
2
10
8
16
4
0
6
9
17
9
2
9
4
0
1
5
5
0
4
16
17
8
2
16
0
2
2
20
1
8
8
0
8
16
14
4
16
4
9
0
9
0
2
3
0
9
4
9
16
20
8
0
1
12
0
5
2
8
0
8
0
0
8
2
5
2
12
1
0
0
2
5
2
2
8
8
5
1
6
0
2
0
0
9
16
2
2
1
2
0
12
2
10
0
12
5
5
9
10
6
9
9
12
13
16
15
16
17
10
9
0
1
16
9
10
1
9
16
9
12
4
9
2
0
10
0
6
2...

result:

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