给定 n,mn,mn,m 及 nnn 个数。
从中选择 kkk 个数,使得 kkk 最小,这 kkk 个数的和最大且小于 mmm,输出 k+1k+1k+1。
translate by
使用您的 gxyz 通用账户