QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#335366#4076. 문자열 찾기GuanYunchang100 ✓241ms15180kbC++231.3kb2024-02-23 10:05:492024-02-23 10:05:51

详细

Subtask #1:

score: 8
Accepted

Test #1:

score: 8
Accepted
time: 1ms
memory: 6176kb

input:

qjq
qjq

output:

1

result:

ok single line: '1'

Test #2:

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

input:

bbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbb

output:

1

result:

ok single line: '1'

Test #3:

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

input:

zvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvm...

output:

1

result:

ok single line: '1'

Test #4:

score: 0
Accepted
time: 2ms
memory: 6144kb

input:

zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 21ms
memory: 6096kb

input:

hnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnl...

output:

1

result:

ok single line: '1'

Test #6:

score: 0
Accepted
time: 107ms
memory: 8648kb

input:

mdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoum...

output:

1

result:

ok single line: '1'

Test #7:

score: 0
Accepted
time: 238ms
memory: 15176kb

input:

kkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkv...

output:

1

result:

ok single line: '1'

Test #8:

score: 0
Accepted
time: 223ms
memory: 15180kb

input:

slbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsu...

output:

1

result:

ok single line: '1'

Test #9:

score: 0
Accepted
time: 230ms
memory: 15124kb

input:

kdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbya...

output:

1

result:

ok single line: '1'

Test #10:

score: 0
Accepted
time: 209ms
memory: 15080kb

input:

ikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikik...

output:

1

result:

ok single line: '1'

Test #11:

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

input:

axaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxax
axaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxax

output:

1

result:

ok single line: '1'

Test #12:

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

input:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

output:

1

result:

ok single line: '1'

Test #13:

score: 0
Accepted
time: 241ms
memory: 15104kb

input:

twlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfy...

output:

1

result:

ok single line: '1'

Test #14:

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

input:

mkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkz...

output:

1

result:

ok single line: '1'

Test #15:

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

input:

qjq
qjq

output:

1

result:

ok single line: '1'

Test #16:

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

input:

bbbbbbbbbbbbbbbb
bbbbbbbbbbbbbbbb

output:

1

result:

ok single line: '1'

Test #17:

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

input:

zvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvmzvm...

output:

1

result:

ok single line: '1'

Test #18:

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

input:

zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz...

output:

1

result:

ok single line: '1'

Test #19:

score: 0
Accepted
time: 24ms
memory: 8112kb

input:

hnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnlezyesxhnl...

output:

1

result:

ok single line: '1'

Test #20:

score: 0
Accepted
time: 103ms
memory: 8324kb

input:

mdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoumdlclzmirpwoum...

output:

1

result:

ok single line: '1'

Test #21:

score: 0
Accepted
time: 234ms
memory: 15140kb

input:

kkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkvviiswukkv...

output:

1

result:

ok single line: '1'

Test #22:

score: 0
Accepted
time: 236ms
memory: 15144kb

input:

slbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsuslbwsu...

output:

1

result:

ok single line: '1'

Test #23:

score: 0
Accepted
time: 235ms
memory: 15176kb

input:

kdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbyakdlbya...

output:

1

result:

ok single line: '1'

Test #24:

score: 0
Accepted
time: 205ms
memory: 15044kb

input:

ikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikikik...

output:

1

result:

ok single line: '1'

Test #25:

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

input:

axaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxax
axaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxaxax

output:

1

result:

ok single line: '1'

Test #26:

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

input:

eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
eeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee

output:

1

result:

ok single line: '1'

Test #27:

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

input:

mkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkzemkezkz...

output:

1

result:

ok single line: '1'

Test #28:

score: 0
Accepted
time: 241ms
memory: 15172kb

input:

twlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfyxtwlxfy...

output:

1

result:

ok single line: '1'

Subtask #2:

score: 5
Accepted

Test #29:

score: 5
Accepted
time: 1ms
memory: 5908kb

input:

fsffffffwffffffnffffwfffffffffffsffffffffffhffffycfscdffifffffffff
f

output:

66

result:

ok single line: '66'

Test #30:

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

input:

llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
lllllllllllllllllllllllllllllllll

output:

36

result:

ok single line: '36'

Test #31:

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

input:

occccgmecpcoccscycnctcccccccmccxcckcccclfccmoglccccgccczcavcrcbckccctcadpcccccectccccccccoqccccccdbc
c

output:

100

result:

ok single line: '100'

Test #32:

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

input:

xbxbjxxbjxxbjxxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjbjxxbj
xbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbj

output:

1

result:

ok single line: '1'

Test #33:

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

input:

ssvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvvisvisvisvisvisvisvisvisvisvvisvisvvsvvv
svisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisv

output:

1

result:

ok single line: '1'

Test #34:

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

input:

fsffffffwffffffnffffwfffffffffffsffffffffffhffffycfscdffifffffffff
f

output:

66

result:

ok single line: '66'

Test #35:

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

input:

llllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllllll
lllllllllllllllllllllllllllllllll

output:

36

result:

ok single line: '36'

Test #36:

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

input:

occccgmecpcoccscycnctcccccccmccxcckcccclfccmoglccccgccczcavcrcbckccctcadpcccccectccccccccoqccccccdbc
c

output:

100

result:

ok single line: '100'

Test #37:

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

input:

xbxbjxxbjxxbjxxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjbjxxbj
xbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbjxxbj

output:

1

result:

ok single line: '1'

Test #38:

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

input:

ssvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvvisvisvisvisvisvisvisvisvisvvisvisvvsvvv
svisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisvisv

output:

1

result:

ok single line: '1'

Subtask #3:

score: 12
Accepted

Dependency #2:

100%
Accepted

Test #39:

score: 12
Accepted
time: 1ms
memory: 6172kb

input:

eweeweweweweweeweweweweeweweweeweweweeweweweweweweweweweweweweweweeweweweweweweweweweweweeweweeweweweweweweweeweweweweweweweweweweweweweweweweweweweweeweweeeweweweweeweeweweweweeeweweweweweweweweweweweeweweweweeweweweweweweeweweweweeweeweeweweweweweweweweeweweweweweweweweweeweweeweweweweweeweweweewe...

output:

520

result:

ok single line: '520'

Test #40:

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

input:

dilctzdildilctzdilctzdilctzdilctzdilctzdilctzdilctzdilcdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilct...

output:

110

result:

ok single line: '110'

Test #41:

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

input:

zfvxxxxdzvxxdzvxxdzvxxdzxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdz...

output:

1

result:

ok single line: '1'

Test #42:

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

input:

fyntkpnnnnnnqcknancqnnynninnnhtnpngnnyhznnlnunncnnnneannqncducnnvnaennjmivbjnnnlnslcvfkznnsyieonmpnbnsqiwtwnnnnnxvndnsdnnqngnnrnbinnannpnuilnynuaxcnvnnnnoznsnnnnyfnxdjnnndoxngzenunnnuannnnkynnnnlonnfnnunnzonnyqblnejnjnsnnuapcnjndpninsgnnnnmznmnkhnnonqtsnsnaningnninvnlngoqnsrvnnnnbgnjtwsnnncungnpvgwv...

output:

2000

result:

ok single line: '2000'

Test #43:

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

input:

zbboxboxboxboboxboboxbboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxxboxboxboxboxboxboxboxboxboxboxboxboxboxboboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxbox...

output:

272

result:

ok single line: '272'

Test #44:

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

input:

iofofofaofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofa...

output:

3

result:

ok single line: '3'

Test #45:

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

input:

eweeweweweweweeweweweweeweweweeweweweeweweweweweweweweweweweweweweeweweweweweweweweweweweeweweeweweweweweweweeweweweweweweweweweweweweweweweweweweweweeweweeeweweweweeweeweweweweeeweweweweweweweweweweweeweweweweeweweweweweweeweweweweeweeweeweweweweweweweweeweweweweweweweweweeweweeweweweweweeweweweewe...

output:

520

result:

ok single line: '520'

Test #46:

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

input:

dilctzdildilctzdilctzdilctzdilctzdilctzdilctzdilctzdilcdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilctzdilct...

output:

110

result:

ok single line: '110'

Test #47:

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

input:

zfvxxxxdzvxxdzvxxdzvxxdzxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdzvxxdz...

output:

1

result:

ok single line: '1'

Test #48:

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

input:

fyntkpnnnnnnqcknancqnnynninnnhtnpngnnyhznnlnunncnnnneannqncducnnvnaennjmivbjnnnlnslcvfkznnsyieonmpnbnsqiwtwnnnnnxvndnsdnnqngnnrnbinnannpnuilnynuaxcnvnnnnoznsnnnnyfnxdjnnndoxngzenunnnuannnnkynnnnlonnfnnunnzonnyqblnejnjnsnnuapcnjndpninsgnnnnmznmnkhnnonqtsnsnaningnninvnlngoqnsrvnnnnbgnjtwsnnncungnpvgwv...

output:

2000

result:

ok single line: '2000'

Test #49:

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

input:

zbboxboxboxboboxboboxbboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxxboxboxboxboxboxboxboxboxboxboxboxboxboxboboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxboxbox...

output:

272

result:

ok single line: '272'

Test #50:

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

input:

iofofofaofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofawmofa...

output:

3

result:

ok single line: '3'

Subtask #4:

score: 75
Accepted

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Test #51:

score: 75
Accepted
time: 14ms
memory: 8108kb

input:

dtdesdddobzldjjidddyddufdzwdddxbddmgddoxfdljkxiixuzdrdlevddvwddofwlldhhluqytdkhdddgdvduljdddddgxdthddgjodjdzpodjnehedqtkzjdjdddtdiddvddundwdddbrjndddomoddzwdjdueaquszdddddydvvddtdddlfdddkdddtkxdvydddduddhuatdmddysoaddhxdddcavobdpdguidvdddvebvlmdmdwqhqdddxdrctidlztskdundlnadhddddddddfbclddnpdddddgdjd...

output:

99484

result:

ok single line: '99484'

Test #52:

score: 0
Accepted
time: 4ms
memory: 6244kb

input:

emeemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlememlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemle...

output:

8282

result:

ok single line: '8282'

Test #53:

score: 0
Accepted
time: 6ms
memory: 5936kb

input:

einovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinova...

output:

5670

result:

ok single line: '5670'

Test #54:

score: 0
Accepted
time: 77ms
memory: 10128kb

input:

txvoflaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

593039

result:

ok single line: '593039'

Test #55:

score: 0
Accepted
time: 86ms
memory: 10808kb

input:

gruyruyruruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruruyruyruyruyruyruyruyruyruyruyrruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruy...

output:

102515

result:

ok single line: '102515'

Test #56:

score: 0
Accepted
time: 178ms
memory: 12936kb

input:

qnzupzupnzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnizupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnix...

output:

8677

result:

ok single line: '8677'

Test #57:

score: 0
Accepted
time: 130ms
memory: 13584kb

input:

fsrkxsxignsydqskssikyisiudsqysnssssetssssscizlcssqpsinsesjsisrmuisvsssussrsssusisslqisshdbusonnswisyygsscbsbsdqsbistsscpbcssspssssspyctssssslasssbnszgaarsvssxmjsosslzssdyksxssfnepqsesesvsszlsusssxdsssksskqsnwksaomsssswohqsssojsasunsrslssdspsqxxbwhslsbskkasqsvsssluzmsqsegssfsdtvsclbsbssmscdsegegqscsr...

output:

1000000

result:

ok single line: '1000000'

Test #58:

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

input:

hdhrahrahhrahhhrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahhrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahra...

output:

183323

result:

ok single line: '183323'

Test #59:

score: 0
Accepted
time: 175ms
memory: 13232kb

input:

qqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqi...

output:

1929

result:

ok single line: '1929'

Test #60:

score: 0
Accepted
time: 194ms
memory: 14372kb

input:

vvjhnmdvjhnmdvjhnmdvjhnmdvjvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjh...

output:

1

result:

ok single line: '1'

Test #61:

score: 0
Accepted
time: 179ms
memory: 14132kb

input:

adkffdatzvutfdatzvutffdatzvutfdatzvutfdatzvutfdatzvutfdfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvfdatzvutfdatzvutfdatzvutfdatzvutfdfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatz...

output:

26769

result:

ok single line: '26769'

Test #62:

score: 0
Accepted
time: 241ms
memory: 14956kb

input:

ljqofbbpxiwljqofbbpxiwljljqofbbpxiwljqofbbpxljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqo...

output:

1

result:

ok single line: '1'

Test #63:

score: 0
Accepted
time: 13ms
memory: 6052kb

input:

dtdesdddobzldjjidddyddufdzwdddxbddmgddoxfdljkxiixuzdrdlevddvwddofwlldhhluqytdkhdddgdvduljdddddgxdthddgjodjdzpodjnehedqtkzjdjdddtdiddvddundwdddbrjndddomoddzwdjdueaquszdddddydvvddtdddlfdddkdddtkxdvydddduddhuatdmddysoaddhxdddcavobdpdguidvdddvebvlmdmdwqhqdddxdrctidlztskdundlnadhddddddddfbclddnpdddddgdjd...

output:

99484

result:

ok single line: '99484'

Test #64:

score: 0
Accepted
time: 8ms
memory: 5956kb

input:

emeemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlememlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemlemle...

output:

8282

result:

ok single line: '8282'

Test #65:

score: 0
Accepted
time: 9ms
memory: 6292kb

input:

einovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinovaeinova...

output:

5670

result:

ok single line: '5670'

Test #66:

score: 0
Accepted
time: 73ms
memory: 10672kb

input:

txvoflaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa...

output:

593039

result:

ok single line: '593039'

Test #67:

score: 0
Accepted
time: 86ms
memory: 10640kb

input:

gruyruyruruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruruyruyruyruyruyruyruyruyruyruyrruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruyruy...

output:

102515

result:

ok single line: '102515'

Test #68:

score: 0
Accepted
time: 175ms
memory: 13288kb

input:

qnzupzupnzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnizupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnixtpzupnix...

output:

8677

result:

ok single line: '8677'

Test #69:

score: 0
Accepted
time: 126ms
memory: 13584kb

input:

fsrkxsxignsydqskssikyisiudsqysnssssetssssscizlcssqpsinsesjsisrmuisvsssussrsssusisslqisshdbusonnswisyygsscbsbsdqsbistsscpbcssspssssspyctssssslasssbnszgaarsvssxmjsosslzssdyksxssfnepqsesesvsszlsusssxdsssksskqsnwksaomsssswohqsssojsasunsrslssdspsqxxbwhslsbskkasqsvsssluzmsqsegssfsdtvsclbsbssmscdsegegqscsr...

output:

1000000

result:

ok single line: '1000000'

Test #70:

score: 0
Accepted
time: 144ms
memory: 13448kb

input:

hdhrahrahhrahhhrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahhrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahrahra...

output:

183323

result:

ok single line: '183323'

Test #71:

score: 0
Accepted
time: 170ms
memory: 13104kb

input:

qqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqilddftqhqi...

output:

1929

result:

ok single line: '1929'

Test #72:

score: 0
Accepted
time: 193ms
memory: 14348kb

input:

vvjhnmdvjhnmdvjhnmdvjhnmdvjvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjhnmdvjh...

output:

1

result:

ok single line: '1'

Test #73:

score: 0
Accepted
time: 175ms
memory: 13712kb

input:

adkffdatzvutfdatzvutffdatzvutfdatzvutfdatzvutfdatzvutfdfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvfdatzvutfdatzvutfdatzvutfdatzvutfdfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatzvutfdatz...

output:

26769

result:

ok single line: '26769'

Test #74:

score: 0
Accepted
time: 234ms
memory: 14400kb

input:

ljqofbbpxiwljqofbbpxiwljljqofbbpxiwljqofbbpxljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqofbbpxiwljqo...

output:

1

result:

ok single line: '1'