QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#642279#8044. Pattern Matching in A Minor "Low Space"ZhangYiDeML 1ms3640kbC++231.5kb2024-10-15 12:33:522024-10-15 12:33:54

详细

Test #1:

score: 100
Accepted
time: 1ms
memory: 3640kb

input:

3 7
aba
abababc

output:

2

result:

ok 1 number(s): "2"

Test #2:

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

input:

1 11
a
abracadabra

output:

5

result:

ok 1 number(s): "5"

Test #3:

score: 0
Accepted
time: 1ms
memory: 3580kb

input:

8 10
possible
impossible

output:

1

result:

ok 1 number(s): "1"

Test #4:

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

input:

10 21
pleasenote
theunusualmemorylimit

output:

0

result:

ok 1 number(s): "0"

Test #5:

score: -100
Memory Limit Exceeded

input:

26 9999990
abcdefghijklmnopqrstuvwxyz
abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyzab...

output:

384615

result: