PraveenDhinwa's blog

By PraveenDhinwa, 12 years ago, In English

I am trying to solve problem : http://mirror.codeforces.com/contest/54/problem/C I am getting wrong answer on test case no 51. Despite trying for a long time, I am unable to get where I am getting wrong.

My code outputs on this test : -1.#IND00000000000000 , which is quite strange. Link to my solution : http://mirror.codeforces.com/contest/54/submission/2789163

Thanks in advance .

EDIT: problem is solved. Problem was in size in declared array . Wasted a lot of time in debugging the solution rather than looking at it. :(

  • Vote: I like it
  • -1
  • Vote: I do not like it