求思路qwq
每日一题啊
连续几十天了
没币换了;(
核心
输入a[i]; if(sum+a[i]<=s){ sum+=a[i]; } else{ sum=a[i]; cnt++; }
最后输出cnt+1
与