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

Correct input
Posted by ValenKof 7 Aug 2011 19:19
I use this and get AC:

char str[30010];
int strsize = 0;
while (fgets(str + strsize, 20000, stdin)) strsize = strlen(str) - 1;
++strsize;