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

Автор fierce_adversary, история, 7 часов назад, По-английски

Hello everyone,Today, I was working on the CSES Stick Lengths problem, where the solution involves using the median as the optimal value for each element. This got me thinking: what if instead of the median, I used one of the following three values? Which type of deviation or cost would be minimized?

  1. Ceiling value of the mean
  2. Floor value of the mean
  3. Rounded value of the mean

I initially asked ChatGPT about it, but the explanation left me a bit confused. I’m curious to hear your insights on this. Thanks in advance!

Полный текст и комментарии »

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