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

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

Problem link: https://mirror.codeforces.com/problemset/problem/2181/B

I'm specifically not able to make sense of this claim

In each pair of moves, at least the maximum is subtracted from the sum of all N numbers. Therefore, the total sum is multiplied by at most $$$1 − \frac{1}{N}$$$ in each step.

I've tried getting AI to explain it to me but it keeps getting confused as well :((

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

»
7 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
7 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

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

»
7 недель назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

Let $$$S$$$ denote the sum of elements in play. The maximum element must be at least $$$\frac{S}{N}$$$. After one turn, the sum goes from $$$S$$$ to ($$$S$$$ minus max element), which is at most $$$S - \frac{S}{N}$$$; that is, S is multiplied by a factor of at most $$$1 - \frac{1}{N}$$$. So the maximum possible number of turns is $$$\log_{(1 - \frac{1}{N})^{-1}} S$$$, which after change of base, yields the subsequent arithmetic.