Codeforces Round #251 (Div. 2) A - Devu, the Singer and Churu, the Joker

水题

#include <iostream>
#include <vector>
#include <algorithm> using namespace std; int main(){
int n,d,t;
cin >> n >> d;
for(int i = ; i < n; ++ i){
cin >> t;
d-=t;
}
d-=(n-)*;
if(d < ) cout<<-<<endl;
else cout<<(n-)*+d/<<endl;
}
上一篇:MySQL视图了解


下一篇:css 制作圆角、圆形图形布局