bool f(long long x) { long long ans = 0; for (int i = 1; i <= n; i++) { ans += a[i] / x; //求教,谢谢 } return ans >= k; }
问一下,这里为什么是除以x,而不是减去x呢?