QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212389#6637. Perfect Stringsucup-team2008#WA 207ms160048kbC++172.3kb2023-10-13 15:30:272023-10-13 15:30:27

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 173ms
memory: 160048kb

input:

2
3 1
2 2

output:

1
6

result:

ok 2 number(s): "1 6"

Test #2:

score: -100
Wrong Answer
time: 207ms
memory: 159856kb

input:

100000
1 1
4 1
5 5
3 5
1 2
5 3
1 1
3 3
5 2
2 1
4 1
5 5
2 3
4 1
3 3
2 5
3 2
4 3
4 4
3 5
3 1
5 2
2 2
4 2
5 4
1 2
3 1
4 5
2 5
5 3
1 5
5 2
3 2
5 2
4 1
1 3
3 2
4 5
2 1
4 1
2 2
1 1
3 5
4 5
2 3
3 5
2 5
2 4
5 4
2 3
1 1
2 1
4 4
1 5
5 4
1 3
5 4
4 5
1 3
1 1
3 3
2 4
2 4
2 1
5 5
1 3
2 3
4 1
4 3
2 4
2 4
4 2
1 1
1...

output:

1
1
35545
385
2
1653
1
69
112
1
1
35545
15
1
69
45
16
327
1276
385
1
112
6
42
9640
2
1
3525
45
1653
5
112
16
112
1
3
16
3525
1
1
6
1
385
3525
15
385
45
28
9640
15
1
1
1276
5
9640
3
9640
3525
3
1
69
28
28
1
35545
3
15
1
327
28
28
42
1
1
35545
15
1276
3
1
2
15
69
1276
9640
35545
6
112
1276
112
15
5
2
...

result:

wrong answer 3rd numbers differ - expected: '71445', found: '35545'