QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#269270#6637. Perfect Stringsucup-team2540#WA 31ms3544kbC++20881b2023-11-29 14:32:422023-11-29 14:32:43

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
3 1
2 2

output:

1
6

result:

ok 2 number(s): "1 6"

Test #2:

score: -100
Wrong Answer
time: 31ms
memory: 3388kb

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
42625
450
2
2943
1
90
328
1
1
42625
15
1
90
45
24
513
1728
450
1
328
6
88
13376
2
1
4375
45
2943
5
328
24
328
1
3
24
4375
1
1
6
1
450
4375
15
450
45
28
13376
15
1
1
1728
5
13376
3
13376
4375
3
1
90
28
28
1
42625
3
15
1
513
28
28
88
1
1
42625
15
1728
3
1
2
15
90
1728
13376
42625
6
328
1728
328
15...

result:

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