Блог пользователя jweh

Автор jweh, история, 4 года назад, По-английски

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

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
3 года назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

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 :)