Attention!
Posted by
Sepehr 15 Aug 2011 21:01
Hello,
Pay attention to your string or char size. Test #7 contains exactly 100 characters which at first, led me to get WA but after realizing my mistake and correcting array size, I could get AC. If you're using cin.get command in C++, don't forget to do something like:
char s[1000];
cin.get(s , 1000);
Give it more space, it doesn't matter how big your array is. Otherwise it'll lead you to get WA#7.
Good luck!
Sepehr