记大于 a0 的数有 x 个
如果 x>1 ,则让 a0 乘 2 。
令 b 为大于 a0 的数构成的数组,cnti 为 bi 降到小于等于 a0 的次数。
假设每个数都 bi 都满足 a0+1≤bi≤2a0
小美有一个长度为 n 的数组 a 。他需要将这个数组中第一个元素 a0 变成这个数组中的最大数。
In following contests:
Scan the QR code below with WeChat to sign in
First-time scan will create your account automatically
请使用微信扫描下方二维码完成注册