improvement_19's blog

By improvement_19, history, 4 years ago, In English

https://codeforces.me/contest/820/submission/82782140 i didnot get what is the error in logic what does they mean by better answer?please help thanks in advance

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

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

The question required you to print an optimal solution. When the jury says they have a better answer, it means that your answer is not optimal. Your logic might be correct, it may give a solution but it is not optimal.