博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
hduoj1096A+B for Input-Output Practice (VIII)
阅读量:6900 次
发布时间:2019-06-27

本文共 811 字,大约阅读时间需要 2 分钟。

A+B for Input-Output Practice (VIII)

Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/32768 K (Java/Others)

Total Submission(s): 55289    Accepted Submission(s): 16787

Problem Description
Your task is to calculate the sum of some integers.
 

 

Input
Input contains an integer N in the first line, and then N lines follow. Each line starts with a integer M, and then M integers follow in the same line. 
 

 

Output
For each group of input integers you should output their sum in one line, and you must note that there is a blank line between outputs.
 

 

Sample Input
3 4 1 2 3 4 5 1 2 3 4 5 3 1 2 3
 

 

Sample Output
10 15 6
View Code
#include 
int main(){ int n,a,b,sum,i,j; scanf("%d",&n); for(j=0;j

 

转载于:https://www.cnblogs.com/zhaojiedi1992/archive/2012/07/21/zhaojiedi_2012_05_27.html

你可能感兴趣的文章
关于php的魔术常量
查看>>
安装CISCO ASA/PIX ASDM
查看>>
C#对word、excel、pdf等格式文件的操作总结
查看>>
Java常见异常反馈
查看>>
SVN被locked锁定
查看>>
字符串相等的判断
查看>>
Haskell类型类多态
查看>>
网页插入FLV视频谷歌火狐浏览器不兼容问题解决方法
查看>>
JS中利用emojione.js转换emoji
查看>>
win7系统eclipse下切换SVN用户
查看>>
优秀程序员的十个习惯
查看>>
7月14日全球域名商(国际域名)解析新增保有量TOP20
查看>>
vs性能测试之旅(3) — 脚本增强之事务
查看>>
DDOS肉鸡代码
查看>>
Container的新机遇:Docker
查看>>
yii2.0 自动加载自定义helper类
查看>>
Linux系统下修改用户密码全攻略
查看>>
802.11帧格式解析
查看>>
AI开发者福音!阿里云推出国内首个基于英伟达NGC的GPU优化容器
查看>>
一文带你领略虚拟化领域顶级技术会议KVM Forum 2018
查看>>