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

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

Hi codeforces,

I'm trying to solve problem 372A ( Counting Kangaroos is Fun ), but i can't figure out what's wrong with my solution #50057680. What i am trying to do is sort the array and use two pointers to get the answer but i'm stuck on test case 6?

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

»
5 лет назад, # |
  Проголосовать: нравится +1 Проголосовать: не нравится

Your asumation is wrong. For exemple take this test. 4 1 1 2 4

Your code gives 3 but the corect answer is 2; I will let you figure it out why.