Not getting solution

Revision en1, by codingdude, 2018-01-25 23:17:51

Hello everybody,

I was trying to solve this problem (http://codeforces.com/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.com/contest/359/submission/34557265

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English codingdude 2018-01-25 23:17:51 477 Initial revision (published)