A + B Problem
来源:互联网 发布:centos和ubuntu区别 编辑:程序博客网 时间:2024/05/20 13:39
A + B Problem
Time Limit: 2000/1000ms (Java/Others)
Problem Description:
Caculate A + B. Process to end of file.
Input:
The input consists of multiple line, each line contain two integers A and B, which means you need EOF format.
Output:
For each case,output A + B in one line.
Needn't to save all the cases' answer in an array, just output the A + B after each cases.
Sample Input:
1 2
4 5
Sample Output:
3
9
Source:
Time Limit: 2000/1000ms (Java/Others)
Problem Description:
Caculate A + B. Process to end of file.
Input:
The input consists of multiple line, each line contain two integers A and B, which means you need EOF format.
Output:
For each case,output A + B in one line.
Needn't to save all the cases' answer in an array, just output the A + B after each cases.
Sample Input:
1 2
4 5
Sample Output:
3
9
Source:
GOJ
#include <stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)!=EOF) { printf("%d\n",a+b); }return 0;}
0 0
- problem 1000: A+B problem
- Problem 1000 A+B Problem
- Problem - 1000 A + B Problem
- A + B Problem
- A + B Problem
- 1000 A+B Problem
- 1001 A + B Problem
- A+B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem
- 1000 A + B Problem
- 1000 A+B Problem
- A + B Problem
- A + B Problem II
- A + B Problem II
- POJ1001 -- A-B Problem
- A + B problem II
- SpringMVC上传文件的三种方式
- A1045. 交换
- 计划做主导,考核为监督,自我复苏 —— 2016末
- 2016 年度读书总结
- git基础
- A + B Problem
- Spring框架的IOC的理解以及谈谈我对Spring Ioc的理解
- maven(一):是否有必要使用maven
- 密码日记
- [省选][1][数据结构]主席树、树链剖分
- 二维数组给指针赋值 和一维数组的区别
- PAT-甲级-1002
- 2016年年末总结
- Good Bye 2016(A+B)