1244:A+B(6)
来源:互联网 发布:mac无法导入手机照片 编辑:程序博客网 时间:2024/06/14 05:48
1244:A+B(6)
Description
You task is to calculate the sum of some integers.
Input
Input contains multiple test case,and one case one line.Each case starts with an integer N, and then N integers follow in the same line.
Output
For each test case you should output the sum of N integers in one line ,and with one line of output for each line in inout.
Sample Input
4 1 2 3 4
5 1 2 3 4 5
Sample Output
10
15
#include<iostream>#include<stdio.h>using namespace std;int main(){ int N,n; while(1==scanf("%d",&N)) { int s=0; while(N--) { scanf("%d",&n); s+=n; } printf("%d\n",s); } return 0;}
阅读全文
0 0
- 1244:A+B(6)
- hdoj 1094a+b(6)
- a+b 6
- 1069 -- A+B(6)
- a+b(整数)
- nvl(A,B)
- A/B(数论)
- A+B(1003)
- a+b(3)
- a+b(高精度)
- A-B(水)
- A + B (python)
- A/B(HDU1576)
- HDU1229(A+B)
- Jquery之表单过滤器之$("a b")--$("a>b")--$("a+b")--$("a~b")--(十六)
- a>b?a:b
- pat(B)1016. 部分A+B
- 大数相减(A -B)(A>B)
- cookie的封装
- Hibernate(一)概述
- 我对servlet+jsp当中使用token令牌避免用户重复提交表单的见解
- AS打包全攻略
- python --- 多线程处理(单进程/多进程)
- 1244:A+B(6)
- 关于VS2010 MFC菜单替换的问题??
- 帧中继和ATM的比较
- PowerDesigner16.5详细操作【导出SQL语句】
- Codeforces 714D [树上启发式合并][Hash]
- Kings of Persia UVALive
- 统计序列中当前元素之前比它大的元素个数(两种解法:归并排序应用,线段树)
- Hibernate中用注解配置一对多双向关联和多对一单向关联
- opencv 提取视频信息(提取每帧 VS 按照时间提取)