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 1404. Easy to Hack!

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