QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#212406#6637. Perfect Stringsucup-team2008#WA 200ms160184kbC++172.3kb2023-10-13 15:40:002023-10-13 15:40:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 200ms
memory: 160184kb

input:

2
3 1
2 2

output:

1
6

result:

ok 2 number(s): "1 6"

Test #2:

score: -100
Wrong Answer
time: 177ms
memory: 160120kb

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
58445
485
2
2787
1
87
188
1
1
58445
15
1
87
45
20
489
1900
485
1
188
6
62
16024
2
1
5225
45
2787
5
188
20
188
1
3
20
5225
1
1
6
1
485
5225
15
485
45
28
16024
15
1
1
1900
5
16024
3
16024
5225
3
1
87
28
28
1
58445
3
15
1
489
28
28
62
1
1
58445
15
1900
3
1
2
15
87
1900
16024
58445
6
188
1900
188
15...

result:

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