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

Автор sagarsingla_, история, 4 года назад, По-английски

After contest i found my submission for the Problem — 1393B - Applejack and Storages incorrect but in system testing my solution passed all the test cases.

Here's my submission — 89257174

Solution fails on the following test case :

12
1 1 1 1 2 2 2 2 3 3 3 3
1
+ 10

Correct Answer is YES but my code is printing NO. I request AlFlen, ksun48, 300iq, isaf27 to look into this issue.

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

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

here's the link to similar discussion https://codeforces.com/blog/entry/81172

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

I think else if(f.size() == 2) should be else if(f.size() >= 2).