hdu1.1.6
2012-06-19 00:48
288 查看
#include<stdio.h> void main() { int a,sum; int n=1; while(scanf("%d",&n)!=EOF) { sum=0; while(n&&scanf("%d",&a)!=EOF) sum+=a,n--; printf("%d\n",sum); } }
相关文章推荐
- HDU 1.1.6
- HDU 1.1.6 A+B for Input-Output Practice (VI)
- HDU 1.1.6解题报告
- HDU 1.1.6 A+B for Input-Output Practice (VI)
- HDU 1001
- HDU 4036 物理坑爹题
- uboot1.1.6/lowlevel.S详解
- hdu 4283 You Are the One
- hdu 2818 Building Block(并查集,输出一元素下边有多少)
- HDU 2046 骨牌铺方格
- HDU 计算直线的交点数
- [HDU 2544]最短路[Dijkstra]
- hdu_4619 Warm up 2 二分图匹配
- HDU1284 钱币兑换问题
- HDU 3336 Count the string(KMP)||记忆化搜索
- POJ 2243 || HDU 1372:Knight Moves(BFS)
- hdu-2501-Tiling_easy version
- HDU 1358 Period
- HDU 2448 Mining Station on the Sea(KM最大匹配+floyd)
- hdu 2201 熊猫阿波的故事(简单概率。。)