Crypto Gift

Professor invites his nnn friends on his birthday. He wants to reward all of them and make them happy. The ithi^{th}ithfriend will be happy if the friend gets at least AiA_iAi​ units of cryptocurrency coins.


This is a companion discussion topic for the original entry at https://toph.co/p/crypto-gift