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

Автор Coder_Guy, история, 9 лет назад, По-английски

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.

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