QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#674168#6836. A Plus B Problemucup-team5027#WA 186ms3644kbC++201.5kb2024-10-25 14:20:262024-10-25 14:20:28

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

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: 0ms
memory: 3588kb

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

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 2
3 2
2 8
4 2
6 4
2 3
4 2
6 5
6 3
2 4
7 2
2 2
8 2
1 2
5 2
1 3
2 3
8 3
8 2
2 2
6 2
1 3
3 3
7 2
7 3
0 2
9 2
6 4
9 2
1 3
4 2
7 3
0 3
8 3
8 3
8 2
2 2
3 3
0 3
2 3
5 2
9 2
4 2
8 2
3 3
5 3
3 2
5 2
4 2
3 2
1 2
4 2
7 3
0 3
5 2
6 3
0 3
4 2
4 2
3 3
5 3
6 3
3 2
8 2
9 2
9 2
1 2
1 4
7 3
5 2
5 2
4 2
0 2
...

result:

wrong answer 3rd lines differ - expected: '9 0', found: '9 2'