C++简洁代码:
模数求和
http://www.nowcoder.com/questionTerminal/34dc8aef8295470ea536f1c9255fef7e
C++简洁代码:
#include<bits/stdc++.h>
using namespace std;
int main(){
int n, temp, res = 0;
cin >> n;
while (cin >> temp)
res += temp - 1;
cout << res << endl;
return 0;
}
查看1道真题和解析
老板电器公司氛围 216人发布