QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#201110#6539. Treasure Boxucup-team1209#WA 16ms5728kbC++204.0kb2023-10-05 12:02:282023-10-05 12:02:29

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

2
5 1
ABCDE
7 1 4 5 1
5 1
ABCDA
7 1 4 5 1

output:

6 5 6 6 5 
2 1 2 3 4 

result:

ok 10 numbers

Test #2:

score: 0
Accepted
time: 0ms
memory: 3964kb

input:

1
10 4
AABABBABAB
10 3 4 10 7 1 8 10 7 6

output:

10 14 18 22 26 22 18 14 10 6 

result:

ok 10 numbers

Test #3:

score: -100
Wrong Answer
time: 16ms
memory: 5728kb

input:

10000
10 4
ABBBAABABB
6 10 3 9 1 8 5 4 4 10
10 4
BABBAAABAB
3 7 5 9 2 3 9 8 4 1
10 4
ABBBAAABAA
3 2 4 8 2 9 1 9 6 3
10 4
BBAABBAABB
8 8 10 7 1 1 4 9 6 4
10 4
BAABBBBBAB
5 7 3 5 4 2 1 8 2 8
10 4
ABAAAABABA
10 8 2 7 5 3 7 8 10 5
10 4
BBABABAABA
10 6 10 2 2 6 4 4 3 9
10 4
BBBAAAABBB
7 2 2 8 9 10 10 6 7...

output:

17 21 17 21 25 29 26 22 26 23 
21 17 13 9 13 13 9 13 17 21 
29 25 22 18 22 19 15 19 15 19 
0 0 0 0 0 0 0 0 0 0 
11 7 3 7 11 15 12 8 12 16 
19 15 11 7 11 11 7 11 15 19 
30 34 38 34 30 34 38 42 39 41 
0 0 0 0 0 0 0 0 0 0 
11 7 3 7 11 13 9 5 9 13 
8 4 8 12 16 14 10 6 2 6 
18 14 10 6 10 14 10 14 18 22 
...

result:

wrong answer 10th numbers differ - expected: '22', found: '23'