Loading repovive.com/contests/10/problems/C
Hannah has CPUs. The -th CPU initially has cores.
In one operation, she chooses one CPU with cores and splits it into two CPUs with positive integer numbers of cores and , where .
After performing some number of operations, Hannah wants all remaining CPUs to have the same number of cores.
Find the minimum number of operations required.