100. A+B time limit per test: 0.25 sec. 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 |
//
// main.cpp
// SGU100
//
// Created by luras on 15/12/24.
// Copyright (c) 2015年 luras. All rights reserved.
//
#define ms(x, y) memset(x, y, sizeof(x))
#define mc(x, y) memcpy(x, y, sizeof(x))
#define ls o << 1
#define rs o << 1 | 1
#include<stdio.h>
#include<string.h>
#include<math.h>
#include<queue>
#include<map>
#include<stack>
#include<vector>
#include<list>
#include<set>
#include<string>
#include<algorithm>
#pragma comment(linker,"/STACK:102400000,102400000")
template <class T> inline void gmax(T &a, T b){if(b > a) a = b;}
template <class T> inline void gmin(T &a, T b){if(b < a) a = b;}
using namespace std;
const int N = 1e5 + 10, M = 2e6 + 10, Z = 1e9 + 7, maxint = 2147483647, ms1 = 16843009, ms31 = 522133279, ms63 = 1061109567, ms127 = 2139062143;
const double PI = acos(-1.0), eps = 1e-8;
typedef long long LL;
void fre()
{
freopen("/Users/luras/Desktop/in.txt", "r", stdin);
freopen("/Users/luras/Desktop/out.txt", "w", stdout);
}
const int INF = 1e9;
int casenum, casei;
int a, b;
int main()
{
while(~ scanf("%d%d", &a, &b)){
printf("%d\n", a + b);
}
return 0;
}
/*
题意:
类型:
分析:
优化:
trick:
数据:
Sample Input
Sample Output
*/