Need help in figuring out problem in code

Revision en1, by Coder_Guy, 2017-03-01 19:02:29

Hi,

I am having trouble finding out where the code fails for problem http://mirror.codeforces.com/problemset/problem/279/C.

My logic is as follows:-

  1. Store the entries in an array till the time the answer is valid
  2. Check if the r in the array contains less than or equal to l then the answer is "Yes".
  3. My code fails at test case 21.
  4. Please point the error in the code.
  5. It would be good if you can give a small sample test case where the code fails.

Link to submission http://mirror.codeforces.com/contest/279/submission/25115819

Thanks in advance.

Tags help needed

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Coder_Guy 2017-03-01 19:02:29 611 Initial revision (published)