jweh's blog

By jweh, history, 4 years ago, In English

In the registration system problem from Code forces beta round #4 it is given that the number of character in a string are not more than 32.but when i use a string of size exactly 32 character i get a wrong answer on 13 test case.and if i use s[33] my solution is accepted.can i know where I am going wrong This is my code- Your text to link here...

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
3 years ago, # |
  Vote: I like it 0 Vote: I do not like it

If you are using an array of char instead of string you should define it with one more space because Its first index will automatically equals to NULL and your code is fine :)