gsmcoder97's blog

By gsmcoder97, history, 9 years ago, In English

I was attempting this question. Kefa and Park but I am getting WA in test case 10. Can anyone please help. Link: http://mirror.codeforces.com/contest/580/submission/18113202 Thanks

  • Vote: I like it
  • +3
  • Vote: I do not like it

| Write comment?
»
9 years ago, # |
  Vote: I like it +9 Vote: I do not like it

Here is small test that fails your program:
3 3
1 1 1
2 3
1 2
Your code outputs 2, while answer is 1.