codingdude's blog

By codingdude, history, 7 years ago, In English

Hello everybody,

I was trying to solve this problem (http://codeforces.me/problemset/problem/359/D) but I am getting wrong answer on test case 39. I am not getting why it is happening so.

My algo is simple and straight forward. For each query, I am trying to find value of r — l and update my answer array according to that only.

Can anybody please help?

Thanks :)

My code — http://codeforces.me/contest/359/submission/34557265

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