QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#623725#7898. I Just Want... One More...NailongGroup#WA 8ms38440kbC++174.3kb2024-10-09 13:49:452024-10-09 13:49:55

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 4ms
memory: 38440kb

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

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:

8
0
0
1
0
0
0
0
8
0
12
4
0
4
10
10
7
0
7
4
0
1
2
2
0
4
12
10
2
1
12
0
1
2
12
1
0
0
0
0
12
8
6
12
4
7
0
7
0
1
2
0
10
6
7
12
12
0
0
1
7
0
2
1
0
0
3
0
0
3
2
2
0
7
1
0
0
3
2
3
3
2
0
2
4
6
0
0
0
0
7
12
1
0
1
1
0
10
1
6
0
7
3
4
7
6
4
7
10
10
2
12
10
12
10
8
7
0
2
12
7
8
1
7
12
7
10
4
10
2
0
6
0
4
0
2
0
0
...

result:

wrong answer 1st numbers differ - expected: '6', found: '8'