杭电oj1092简单的加法
来源:互联网 发布:深圳火妹网络 编辑:程序博客网 时间:2024/06/05 14:23
#include<iostream>
using namespace std;
int main()
{
int a,b,i,c,n;
while(cin>>a)
{
b=0;
if(a==0)
break;
for(i=0;i<a;i++)
{
cin>>c;
b=b+c;
}
cout<<b<<endl;
}
return 0;
}
using namespace std;
int main()
{
int a,b,i,c,n;
while(cin>>a)
{
b=0;
if(a==0)
break;
for(i=0;i<a;i++)
{
cin>>c;
b=b+c;
}
cout<<b<<endl;
}
return 0;
}
阅读全文
0 0
- 杭电oj1092简单的加法
- 杭电oj1093 简单的加法
- 杭电oj1089 最简单的加法
- 【杭电oj1092】A+B for Input-Output Practice (IV)
- 杭电1002大数加法
- 杭电1002大数加法
- 杭电oj1094还是加法
- 杭电oj1091 多个终止的加法
- 简单的加法
- 简单的加法计算器
- 杭电1002大整数加法
- 杭电1002----高精度计算(加法)
- 杭电HDU1002(大数加法)
- 高精度加法——杭电1002
- 杭电acm-1002题-大数加法
- 杭电oj1095 加法多两个换行
- 杭电oj1096 加法 注意输出格式
- 杭电oj1090 多个加法
- java给定一串字符串,统计其中的各个字符的出现的次数
- 学生信息管理知识总结
- LeetCode#199. Binary Tree Right Side View
- 17暑假多校联赛2.8 HDU 6052 To my boyfriend
- 2017.07.31
- 杭电oj1092简单的加法
- mysql5.7.17安装教程(linux系统)
- Github readme.md 添加图片
- 为何程序员喜欢将INF设置为0x3f3f3f3f?
- spring 常用类
- Notes On Latex: lshort chapter 1
- 初步学习struts
- webservice第二篇【自定义webservice服务、soa、uddi概念、soap协议】
- Svn linux服务端安装及配置