sagarsingla_'s blog

By sagarsingla_, history, 4 years ago, In English

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.

  • Vote: I like it
  • -10
  • Vote: I do not like it

»
4 years ago, # |
  Vote: I like it +15 Vote: I do not like it

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

»
4 years ago, # |
Rev. 2   Vote: I like it +1 Vote: I do not like it

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