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;
}
全部评论

相关推荐

少年郎as:这不把公司名贴出来那我可要喷你了哦
点赞 评论 收藏
分享
程序员牛肉:你这其实一点都没包装,标准的流水线产品。 实习现在不一定能解决你的问题,你太浮躁了。你看了多少源码?看了多少技术博客?真的没必要这么浮躁的着急找实习,沉下心来学习
投递实习岗位前的准备
点赞 评论 收藏
分享
评论
3
收藏
分享

创作者周榜

更多
牛客网
牛客网在线编程
牛客网题解
牛客企业服务