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 1027. D++ Again

WA1? read me
Posted by Lavrentiy Palovich 4 Jul 2011 19:31
do not save newlines!
make if to skip them
for example:
cin >> noskipws;
while(cin >> ch) {
    if (ch != '\n')
        s[n++] = ch
}