1.http://codeforces.net/contest/1023/submission/41721425 2.http://codeforces.net/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.