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

Автор dharmang, 12 лет назад, По-английски

Here is my code for the problem problem 525B- mysolution . I think I have understood the problem perfectly and coded it but aint able to find what mistake I am making and why i aint getting AC.. Can anyone help?? If you have any other way of solving this you can share that too and if you find a thing or two wrong in my code or concept, please feel free to explain me those!! Thank You guys!! :)

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

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

silly mistake => 10770669

»
12 лет назад, скрыть # |
← Rev. 2  
Проголосовать: нравится +5 Проголосовать: не нравится

You should initialize your array a with zeroes since it is declared inside the main function: http://codeforces.me/contest/525/submission/10770670