ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1590. Bacon’s Cipher

WA 3
Posted by Cat36 11 Nov 2008 23:42
Give me some tests,  please

Edited by author 11.11.2008 23:43
Re: WA 3
Posted by Aleksandr Shvarkunov (Pskov SPI team #1) 2 Feb 2009 20:14
abab
answer - 7
It helped me with WA3 (Z-function O(N^2) solution)

rthfdffdfdfffffdddffdgdfdfdg
answer - 349
hshhflgseiuajsliouew
answer - 202
gggfffgggghhhhghh
answer - 126
aaaabbbbfghjjlltrgttcdssdbnpoiuyewtdarsuorprpooeuyywdgfxsdkkvcjbidfryieiue
answer - 2713


Edited by author 02.02.2009 20:14

Edited by author 02.02.2009 20:21
Re: WA 3
Posted by [RSU_Tash]Nodirbek_Kuklamov 12 Nov 2011 23:53
If you use Z-function don't forget re-initialize z-array before each iteration!!!
z[0]..z[i] = {0}
Re: WA 3
Posted by Pavel 25 Sep 2021 03:30
try bbbabbbababb answer is 51
Re: WA 3
Posted by Yarila 22 Jul 2023 18:05
hm... This are tests successful, but error on 1 test