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 1269. Obscene Words Filter

WA on #12 or some please pay attention to this
Posted by grapland 9 Oct 2010 01:14
DO NOT output just after you've find a match.
some short string may be matched before long string,as this:

2
qwertyuiopxyz
uiop
1
qwertyuiopxyzzzz

output 1 1,not 1 7.
luckly,some good AC subroutine can avoid this...
Re: WA on #12 or some please pay attention to this
Posted by Edric Mao 2 Nov 2011 15:28
thanks ,i didn't notice it