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 1094. E-screen

For Everybody Who Had WA!! like ME
Posted by Nujarin 30 Apr 2006 00:39
1.I Just gets(str)NOT while(!feof(stdin))scanf("%c",&choice);
2.I Clear all member in output array = ' ';
3.I print With for(i = 0;i < 80;i++)printf("%c",data[i]) NOT printf("%s",data);
4.I print output with 80 len of Symbols

NOW I GET AC!!!
Re: For Everybody Who Had WA!! like ME
Posted by Semm 6 Jul 2008 20:35
Thanks a lot. Using "gets" solved my problem with WA#1. It's interesting, why has it occured?
Re: For Everybody Who Had WA!! like ME
Posted by [USTU To be] Kirill Teplinskiy 16 Oct 2008 00:17
it's very simple.
there is '\n' at the end of input line ))
gets delete it for you but you forgot about this when you read input byte after byte.