- http://mirror.codeforces.com/contest/1023/submission/41721425
- http://mirror.codeforces.com/contest/1023/submission/41707260 both the solution is accepted but they are giving completely different answer for test case: 6 4(n=6,q=4) 4 4 3 3 4 4. the right answer is "NO",but the first submission is printing "YES".please check this issue.
Auto comment: topic has been updated by csgocsgo (previous revision, new revision, compare).
only god knows how many solutions like this where accepted...
The test is added, thanks, all submissions from now on will be tested on it as well.
Yeah I also agree. Testcases to this question were too weak. One of my friend who just submitted random algo for checking last element and got passed up to 60 testcases.
It doesn’t really matter how many test cases a wrong solution passes. As long as it fails in the end then the tests are sufficient.