BOJ 1 A+B Problem
2013-05-05 13:55
183 查看
[b]A+B Problem[/b]
Description
Calculate a+b
Input
Two integer a,b (0<=a,b<=100)
Output
Output a+b
Sample Input
1 1
Sample Output
2
[C++]
Accept:3524 | Submit:8578 |
Time Limit:1000MS | Memory Limit:4000KB |
Calculate a+b
Input
Two integer a,b (0<=a,b<=100)
Output
Output a+b
Sample Input
1 1
Sample Output
2
[C++]
#include<iostream> using namespace std; int main() { int a,b; while(cin>>a>>b) cout<<a+b<<endl; return 0; }
相关文章推荐
- boj-1002-A-B Problem 大数加减法
- boj problem 1326 冒泡的话复杂度太高 TLE错误。输入时就应该进行判断
- BOJ 83 A + B Problem
- boj problem 1329 快速排序tle 堆排序还可以~~需要熟悉快速排序和堆排序~~静态数组全局下可以很大 但main下不行 具体看1331那篇
- boj problem 1331 思路:快排分块 按块查找 问题:全局数组时可以定义到500W的 main函数下的数组不行~ 另外c语言比c++快 TLE可以考虑C~~具体原因待解决
- n.boj 389 Shaking Your Cellphone(6th bupt acm problem D)
- boj problem 1340 简单题 费时很久 long long型 输入输出时 "%lld“ 是LL而不是11. 先快排 然后计算就可以
- boj problem 1323 读取字符串时候要考虑空格情况 用cin.getline(数组名,大小)
- boj problem 1325 一次ac~~哈哈 第一次~~
- uva-729 - The Hamming Distance Problem-全排列
- BOJ 2014新生暑假个人排位赛04 整合
- Leetcood Problem3 longest substring
- Problem--96A--Codeforces--Football
- A+B Problem
- Poj 3468 A Simple Problem with Integers 相关的8种解法
- HDU2993 MAX average problem [斜率dp]
- Problem creating zip: Execution exce ption (and the archive is probably corrupt but I could not delete it): Java heap space -> [Help 1]
- spring源码导入eclipse,A problem occurred configuring project ':spring-orm-hibernate4'.
- HDU Problem y
- 0x0000007B:A problem has been detected and windows has been shut down to prevent damage to your Comp