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

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

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

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

»
6 лет назад, скрыть # |
 
Проголосовать: нравится +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.