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 1446. Sorting Hat

WA 3
Posted by Frog 14 Nov 2014 14:11
I use fgets to read from stdin, when I try to store name in an array with length 201, i got WA 3,but when I changed the length to 210, I got AC, who can tell me why?
Re: WA 3
Posted by Frog 14 Nov 2014 14:21
i got it: if the name has exactly 200 symbols, the name and the newline will be read into two strings.