Блог пользователя improvement_19

Автор improvement_19, история, 4 года назад, По-английски

https://codeforces.com/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

  • Проголосовать: нравится
  • -3
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

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.