QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#440953#6637. Perfect Stringsucup-team968#WA 454ms238024kbC++1773.0kb2024-06-14 06:55:592024-06-14 06:56:00

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 375ms
memory: 238024kb

input:

2
3 1
2 2

output:

1
6

result:

ok 2 number(s): "1 6"

Test #2:

score: -100
Wrong Answer
time: 454ms
memory: 238020kb

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
797029355
361964274
2
720381631
1
4294655
369612253
1
1
797029355
15
1
4294655
45
334049117
47240791
199699504
361964274
1
369612253
6
671319190
563025812
2
1
239281456
45
720381631
5
369612253
334049117
369612253
1
3
334049117
239281456
1
1
6
1
361964274
239281456
15
361964274
45
28
563025812
1...

result:

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