csgocsgo's blog

By csgocsgo, history, 6 years ago, In English
  1. http://mirror.codeforces.com/contest/1023/submission/41721425
  2. 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.
  • Vote: I like it
  • +103
  • Vote: I do not like it

»
6 years ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by csgocsgo (previous revision, new revision, compare).

»
6 years ago, # |
  Vote: I like it +10 Vote: I do not like it

only god knows how many solutions like this where accepted...

»
6 years ago, # |
  Vote: I like it +17 Vote: I do not like it

The test is added, thanks, all submissions from now on will be tested on it as well.

»
6 years ago, # |
  Vote: I like it -22 Vote: I do not like it

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.

  • »
    »
    6 years ago, # ^ |
      Vote: I like it +35 Vote: I do not like it

    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.