QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#384717#6836. A Plus B ProblemdsostWA 186ms3672kbC++201.5kb2024-04-10 11:09:502024-04-10 11:09:50

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

5 5
01234
56789
2 1 0
2 2 1
2 3 2
2 4 3
2 5 4

output:

0 2
3 2
5 3
7 3
8 3

result:

ok 5 lines

Test #2:

score: 0
Accepted
time: 1ms
memory: 3652kb

input:

1 1
1
1
1 1 9

output:

0 2

result:

ok single line: '0 2'

Test #3:

score: -100
Wrong Answer
time: 186ms
memory: 3656kb

input:

10 1000000
6869373857
3130626142
1 9 2
1 10 0
2 7 6
1 1 0
1 7 6
2 10 4
2 3 9
2 4 2
2 4 4
2 7 0
1 2 4
1 9 8
1 3 7
1 7 1
1 1 5
2 1 6
1 3 5
2 5 8
2 6 5
1 6 3
1 3 8
2 4 2
2 6 3
2 2 6
1 10 9
2 1 1
2 5 4
1 1 8
2 4 0
1 9 1
1 1 8
2 4 2
2 9 2
1 10 3
1 8 9
1 4 6
2 3 0
1 1 6
1 7 1
1 10 9
2 4 4
2 5 9
2 1 8
1 9 ...

output:

6 2
2 2
9 0
3 2
0 8
4 2
6 2
2 2
4 2
4 5
6 3
0 7
7 2
0 3
8 2
1 2
5 2
1 2
2 3
8 3
8 2
2 2
6 2
1 3
0 3
7 2
7 3
0 2
9 2
4 3
0 0
1 2
2 2
4 3
1 2
8 3
8 3
8 2
0 0
0 3
0 3
2 3
5 2
7 2
2 2
8 2
3 3
3 3
1 2
3 0
4 2
3 2
1 2
5 2
7 3
0 2
6 2
6 2
0 3
2 2
4 2
3 2
2 3
6 3
1 0
8 2
7 3
9 2
1 2
1 4
7 2
5 2
3 2
4 0
0 2
...

result:

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