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

Pitfalls
Posted by Gary Ye 9 Jul 2015 19:59
Some testcases contain empty strings, which is very nasty, and they should be read in combination with scanf and gets. I had scanf("%d\n", &N) initially, which skipped the empty lines afterwards, so my gets() calls where kind of useless.

Secondly, here are some testcases:

2
bc
abcd
1
abcx

Should return 1 2

2
bc
abcd
1
abcd

Should return 1 1
Re: Pitfalls
Posted by asdsteven 14 Sep 2017 20:39
thank you very much