30行totalCoins - x换成x-a[i-1] 在for外定义i,就能过了
1 2

相关推荐

牛客网
牛客企业服务