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 1563. Bayan

Be careful about the length 30 in C
Posted by Li Xun 24 Jan 2008 17:10
I got WA at first and I found I have made a mistake:
For each line I allocate a string with length 30 but in fact it should be 31, because of the \0 at the end of string in C language.
Re: Be careful about the length 30 in C
Posted by Ilya_Malinovsky 26 Sep 2010 01:21
Thank you very much! I got WA#5 because of the same mistake.
Re: Be careful about the length 30 in C
Posted by wf88 18 Feb 2012 14:32
Thanx a lot! Got the same mistake.