【HDOJ】 <Problem - 1000> : A+B Problem
2013-02-04 20:09
190 查看
原题地址: [ http://acm.hdu.edu.cn/showproblem.php?pid=1000 ]
代码地址: [ http://download.csdn.net/detail/angryn00b/5053087 ]
Problem Description
计算 A + B
Input
每行有2个整数 A 和 B, 并且需处理 EOF
Output
对每个输入都应有对应的每行输出A+B的值
Sample Input
1 1
Sample Output
2
AC
大家要注意处理EOF
代码地址: [ http://download.csdn.net/detail/angryn00b/5053087 ]
Problem Description
计算 A + B
Input
每行有2个整数 A 和 B, 并且需处理 EOF
Output
对每个输入都应有对应的每行输出A+B的值
Sample Input
1 1
Sample Output
2
AC
#include <iostream> using namespace std; int main(void) { int A, B; while (cin >> A >> B) cout << A+B << endl; return 0; }
大家要注意处理EOF
相关文章推荐
- 【HDOJ】 <Problem - 1001> : Sum Problem
- Jam's math problem<hdoj5615>
- 【HDOJ】 <Problem - 1002> : A + B Problem II
- UESTC_菲波拉契数制升级版 2015 UESTC Training for Dynamic Programming<Problem L>
- hdoj 2206 IP的计算 ~(>_<)~不是一般的水题!!!
- hdoj2045不容易系列之(3)—— LELE的RPG难题<递推>
- <Interview problem>二进制加法
- UESTC_秋实大哥与小朋友 2015 UESTC Training for Data Structures<Problem A>
- UESTC_秋实大哥搞算数 2015 UESTC Training for Data Structures<Problem N>
- 【CF 713C】Sonya and Problem Wihtout a Legend(离散化+dp)<POJ 3666变形>
- 【HDOJ】1032 -> The 3n + 1 problem
- UESTC_王之迷宫 2015 UESTC Training for Search Algorithm & String<Problem A>
- UESTC_韩爷的梦 2015 UESTC Training for Search Algorithm & String<Problem N>
- hdoj1863畅通工程<最小生成树>
- <hdoj2647>Reward
- UESTC_秋实大哥与连锁快餐店 2015 UESTC Training for Graph Theory<Problem A>
- UESTC_秋实大哥与花 2015 UESTC Training for Data Structures<Problem B>
- 求余<hdoj1212>
- UESTC_邱老师降临小行星 2015 UESTC Training for Search Algorithm & String<Problem B>
- HDOJ 1319 Prime Cuts<数论>