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

hint for test 5
Posted by kyo_key 11 May 2009 10:55
use         while (getchar()!='\n');
don't use        scanf("\n");
scanf("\n") not just wait for \n ,it will skip all blank char

Edited by author 11.05.2009 10:57
Re: hint for test 5
Posted by yuzeming 24 Feb 2010 11:57
What a F**k Data!
Re: hint for test 5
Posted by grayluck 25 Feb 2010 13:29
useful hint!&&now i TLE 13..
Re: hint for test 5
Posted by Alexander Samal 21 Jul 2010 22:48
I passed this test using
getline(cin, str, '\n');
Now I have MLE #13 :(