• 博客园logo
  • 会员
  • 周边
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • YouClaw
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
HaibaraAi
博客园    首页    新随笔    联系   管理    订阅  订阅

SGU 100 A+B

100. A+B

time limit per test: 0.5 sec.
memory limit per test: 65536 KB

 

Read integers A and B from input file and write their sum in output file.

 

Input

Input file contains A and B (0<A,B<10001).

 

Output

Write answer in output file.

 

Sample Input

5 3

Sample Output

8
 1 #pragma comment(linker, "/STACK:1024000000,1024000000")
 2 #include <map>
 3 #include <queue>
 4 #include <vector>
 5 #include <string>
 6 #include <cmath>
 7 #include <cstdio>
 8 #include <cstring>
 9 #include <cstdlib>
10 #include <iostream>
11 #include <algorithm>
12 using namespace std;
13 #define maxn 200005
14 #define ll long long
15 #define INF 0x7fffffff
16 #define eps 1e-8
17 int n, m;
18 int main(){
19     int cas = 1;
20     int t;
21     while (~scanf("%d%d",&n,&m)){
22         printf("%d\n", n + m);
23     }
24     return 0;
25 }
View Code

 

posted @ 2013-10-29 17:37  HaibaraAi  阅读(84)  评论(0)    收藏  举报
刷新页面返回顶部
博客园  ©  2004-2026
浙公网安备 33010602011771号 浙ICP备2021040463号-3