QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#725749#6507. Recover the StringZ_301WA 154ms50656kbC++143.1kb2024-11-08 19:45:292024-11-08 19:45:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 3ms
memory: 50656kb

input:

3
1 0
5 6
2 4
2 5
5 3
4 3
1 5
1 4
8 11
1 2
1 4
1 6
2 5
3 4
3 6
4 5
4 7
5 8
6 7
7 8

output:

a
aba
aaba

result:

ok 3 lines

Test #2:

score: -100
Wrong Answer
time: 154ms
memory: 46552kb

input:

26837
1 0
2 1
2 1
3 2
1 3
2 3
3 2
3 1
1 2
5 5
4 3
5 1
1 2
3 2
5 3
5 6
2 4
2 5
5 3
4 3
1 5
1 4
5 5
1 5
2 1
2 4
4 5
3 4
6 6
1 4
5 3
2 4
4 6
3 6
2 3
4 3
1 3
3 4
2 1
7 8
2 5
1 3
7 1
3 5
7 6
1 2
4 6
6 3
8 11
2 6
2 7
3 7
8 1
6 4
4 5
7 4
7 1
3 8
2 8
1 5
8 10
8 1
4 5
7 8
3 5
3 1
7 3
1 2
5 2
6 4
6 3
9 11
5 2...

output:

a
aa
ab
aaa
aba
aba
aba
abc
aaaa
abab
aaaa
aaaa
aaaa
aaaa
abab
aaba
aaaa
abab
aaaa
aaaa
aaaa
aaaa
aaaa
aaaaa
ababa
aaaba
aaaaa
aaaaa
aaaba
aaaba
aaaaa
aaaba
aaaba
aaaba
aaaaa
aaaba
aaaba
aaaaa
aaaba
aaaba
aaaba
ababa
aaaba
aaaaa
aaaaa
aaaaa
aaaaa
aaaaa
aaaba
aaaba
aaaaa
aaaaa
ababa
aaaaa
aaaba
aaaba...

result:

wrong answer 5th lines differ - expected: 'aab', found: 'aba'