QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#835767#9921. Yelkrabucup-team6238#RE 197ms80864kbC++141.5kb2024-12-28 14:33:302024-12-28 14:33:36

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 187ms
memory: 80712kb

input:

2
5
aa
ab
ab
ac
d
1
aaaaa

output:

2 6 1 9 8 
5 

result:

ok 6 numbers

Test #2:

score: 0
Accepted
time: 197ms
memory: 80864kb

input:

10
10
bba
bbaaaabbbaaabaabbbaaaaaababaababbb
b
baaabbaab
babbb
bbbbbaaaaababbabbabbb
bbaaaabbabb
b
aaaaabab
abbbabbabab
10
abb
ab
bbaaaba
bbabbabba
bbbabbbababaaaab
b
aaaa
babababbb
ab
a
2
aaaaabbaabbbbbababbbbbaabababbbaaababbbaaaaabbbaabaabababbaababbabbabbaababbbbbabbbabaaabbbabab
abbaaaaaaaabbaa...

output:

3 35 35 32 60 75 76 67 75 120 
3 1 8 31 41 40 43 55 58 54 
95 146 
32 38 39 41 51 79 79 70 70 112 
3 22 47 90 91 117 129 146 157 
40 53 62 63 
12 46 51 51 83 111 99 113 126 106 
10 45 48 49 89 
12 22 28 37 61 67 70 123 102 118 
50 

result:

ok 71 numbers

Test #3:

score: 0
Accepted
time: 187ms
memory: 79728kb

input:

100
6
baaaab
aadabdbdadabbbbcda
ccbc
b
dccaddba
da
7
aad
dababba
addbdbbbbdabdaadacbabadabdcccbdccabadbbddddaaaddbdbcaa
abcddd
c
bddcc
ca
9
daadbbcaa
bacbdbaab
bcbaba
acbcbd
ac
b
bddcddcdccacdcbbccaccdbc
dabbdccabb
accbbbc
12
bcbdabba
ac
b
cdbbaa
cdaa
bddac
bbacbcaacbbbbbaa
b
dadcbd
bcc
bbbdbcdacbbb...

output:

6 24 28 31 39 35 
3 10 66 71 70 77 73 
9 18 26 28 38 36 54 72 75 
8 10 9 19 19 31 37 33 59 57 73 82 
9 23 33 39 70 68 
15 81 
19 182 241 252 262 306 321 352 
14 26 24 37 33 38 51 48 57 105 112 116 
40 
1 0 22 54 
126 
64 120 125 
17 28 51 66 103 104 131 
1 13 19 29 31 47 47 45 62 61 71 69 
226 
10 2...

result:

ok 698 numbers

Test #4:

score: 0
Accepted
time: 189ms
memory: 79380kb

input:

100
1
aaabbbbaaabbabbaabbababababab
12
abb
a
bbab
b
aaabbabaaabbbba
bb
baba
bb
a
aba
abaabb
bb
7
aa
aaabaabbaabbaabaaaaaaabbabbaabbb
bbaaabaaaaaababbababbbaabbbbabbbaabbaabaaabbbaaababaaaaaabbabaaaabbaab
aaabbbaaaabaaabababbaabaaabbbbbbbaabaabbbaabbbbbbaaabb
abababbbabbabaaabaabbbbbbaaa
ababaaababab...

output:

29 
3 6 10 13 31 26 20 32 47 35 49 32 
2 38 108 144 178 248 253 
12 28 40 84 125 107 134 143 174 230 211 221 
1 0 7 9 12 13 10 14 
19 20 38 42 
1 5 11 10 10 
7 19 23 
11 16 18 29 85 112 97 233 
1 4 7 4 0 25 31 39 50 57 56 56 
3 7 11 11 13 0 26 27 7 8 6 54 
40 
72 108 136 151 159 157 153 200 246 201 ...

result:

ok 711 numbers

Test #5:

score: 0
Accepted
time: 186ms
memory: 80864kb

input:

100
5
bababccabcacccb
ccaabaa
ccbaacbabbacc
bcbcbccbcababbcccccabc
baaaac
8
c
abcabbbcc
cacbcbbbbaabbabacb
cbb
a
c
acccbaacabbccbca
aa
1
baccaababccabbaaaaccbacaabbababbabcbcbcbbccaccbccbcabbababcbbccacccccbacaccaaabbaaaacbccbcaaacbaaccccbaccbcbabbbcccaababbaabbcbcacacacaaacbcccaaaabaccccb
7
abacacb...

output:

15 22 39 63 52 
1 10 30 30 39 32 53 53 
153 
24 36 58 94 91 116 127 
12 
53 112 137 226 301 
4 6 12 20 17 16 41 43 63 32 32 32 
3 1 3 1 2 22 32 38 37 33 52 
209 
6 9 43 46 43 55 61 82 90 111 114 117 
150 225 267 279 
3 7 14 29 28 54 52 75 82 98 125 143 
1 4 7 3 15 
1 1 5 7 9 13 20 18 17 31 35 40 
56...

result:

ok 686 numbers

Test #6:

score: -100
Runtime Error

input:

1
10
cabaabaabbcabaaaacabbcbabaababaccaccacaacccaaaababccbbcaaccaabcbccccccccbbcbbccbccbbbbccabbbcccbcaabbbbbacabcccbbaaabaaabbcabaaacacaaabbcaacacaabcccbccacababbbacbbacabccbcaabccabaccabbbbaaacacabcbbcacabcabcbaccbacbbbabbabcaaaaccbbacccaccaaccaabccacbbcbbacccacbabbccaacccbcaabacbcaccaacccccaccbab...

output:


result: