rt.
#include<iostream> using namespace std;main() { int n,w;cin>>n>>w;int s=0;while(n--) { int a;cin>>a;s+=a; }cout<<(s+w-1)/w; }
这码风跟啥一样。