QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#637977#7898. I Just Want... One More...ucup-team4780#WA 6ms9668kbC++171.2kb2024-10-13 14:31:292024-10-13 14:31:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 9668kb

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
1
9
4
16
4
0
6
9
16
9
1
9
4
0
1
4
4
0
4
16
16
6
2
16
0
2
2
20
1
4
4
0
4
16
12
4
16
4
9
0
9
0
2
3
0
9
4
9
16
20
4
0
1
12
0
4
2
4
0
6
0
0
6
2
4
1
12
1
0
0
2
4
2
2
6
4
4
1
6
0
1
0
0
9
16
2
1
1
2
0
12
2
9
0
12
4
4
9
9
6
9
9
12
9
16
15
16
16
9
9
0
1
16
9
9
1
9
16
9
12
4
9
2
0
9
0
6
1
6
1
1
...

result:

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