QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#517168#7341. A Text Problemucup-team1005AC ✓191ms147928kbC++203.9kb2024-08-13 09:41:242024-08-13 09:41:24

詳細信息

Test #1:

score: 100
Accepted
time: 4ms
memory: 45460kb

input:

1
abcdefghij
2
abd
a

output:

1
10

result:

ok 2 number(s): "1 10"

Test #2:

score: 0
Accepted
time: 191ms
memory: 123388kb

input:

2694
xzzyzyzzzxzxzxyzyxyxx
20
yyz
xz
y
zzzy
z
zyy
x
x
zx
zzz
z
xx
zxyy
x
xzxz
zxxy
xz
yxxz
z
z
zxxxxxyzxyxzyyxyzxyxzyzxzyxzyzxzxzyzyz
20
xy
zxx
yyx
yy
yxyz
zzyz
xzzy
yxzx
zxyy
yzz
y
y
xzx
zy
yxz
yyyx
yzy
zyyz
z
xz
xzzyzyzxzxzzzzxzzzyxzyxzyxxyyyyyy
20
xxxx
zzzz
xxy
z
yxzz
yy
x
yxy
zyy
xxz
yz
zyx
yxyz...

output:

4
12
21
3
21
5
21
21
12
9
21
11
1
21
3
1
12
0
21
21
21
10
8
21
3
4
1
4
4
8
38
38
15
17
7
1
11
2
38
20
0
9
4
33
4
16
33
9
12
9
22
6
1
8
16
33
3
33
9
33
1
0
0
1
0
0
1
0
0
0
0
0
0
1
0
0
0
0
0
0
0
3
0
1
3
0
0
0
3
0
3
1
3
1
0
2
0
1
0
0
14
8
30
14
16
18
30
6
9
4
9
30
2
6
3
3
16
7
3
18
16
9
16
2
9
16
16
4
...

result:

ok 53878 numbers

Test #3:

score: 0
Accepted
time: 54ms
memory: 121712kb

input:

1
abbabaaabaaaaaaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

1
1
1
1
1
1
1
1
1
1
1
1
1
1

result:

ok 14 numbers

Test #4:

score: 0
Accepted
time: 140ms
memory: 147928kb

input:

3
abbabaaabaaaaaaabaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaabaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

107237
107235
107235
107235
107236
107236
107235
107236
107237
107236
199902
199901
199903
199902
199901
199902
199902
199903
199903
199902
199902
199902
199903
199903
199902
199902
199902
199902
199903
199901
199902
199902
199901
199902
199903
199902
199903
199902
199903
199903
199902
199902
199903...

result:

ok 32581 numbers

Test #5:

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

input:

3
ohissgromdvxozagvioyomvyvwmatbyghudjcspfdqzxostqbfcbvokwvkpdeomseldahximmicbduzuprywabeifyzoasffczdtcbowaltrndppvcpjbtadfqxszhmrpzqvxckxhyiinmhtmceptwzjasffwdcvddwtjvsrvpagwzhhbvavuukjqopmwqininbtarmeohvetppbvisznoeoqcytbldwlmjvomsjefolykjqqlqzjvptdaajffvcpzekujfrawkrrachseeuiskhheelbdntlllehyogky...

output:

200000
15147
800
44
2
1
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
...

result:

ok 1893 numbers