April Fools Day Contest 2014 H. A + B Strikes Back
2024-09-08 10:27:18
H. A + B Strikes Back
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
A + B is often used as an example of the easiest problem possible to show some contest platform. However, some scientists have observed that sometimes this problem is not so easy to get accepted. Want to try?
Input
The input contains two integers a and b (0 ≤ a, b ≤ 103),
separated by a single space.
Output
Output the sum of the given integers.
Examples
input
5 14
output
19
input
381 492
output
873
My Solution
I am glad to come over the interesting problem.^_^
After 5 times of WA, I get a real test and Accepted.
#include <iostream>
#include <cstdio>
using namespace std;
//Happy April Fools Day! Thank you ha ha ha ha ha ha!
int main()
{
int a, b;
scanf("%d%d", &a, &b);
printf("%d", a+b);
return 0;
}
Thank you!
最新文章
- 【腾讯优测干货分享】如何降低App的待机内存(二)——规范测试流程及常见问题
- [C++][数据结构]队列(queue)的实现
- 转:MVC 数据验证
- OpenCascade Matrix
- Java中的向上转型和向下转型
- 织梦内容管理系统(DedeCms) 小说模块insert注入漏洞
- module_param()函数
- Bash的数组
- React&;Webpack 环境安装
- JS 遍历对象 jQuery遍历对象
- PHP artisan migrate 报错显示 could not find driver ,怎么办?
- 了解box-sizing 盒子模型
- 如何将一个excel表格的数据匹配到另一个表中
- [C++]Linux之文件拷贝在系统调用和C库函数下的效率比较
- 【最大公约数&;链表】权值 @upcexam5921
- GMA Round 1 数列求单项
- 设计模式之&mdash;&mdash;bridge模式
- Linux3.10.0块IO子系统流程(0)-- 块IO子系统概述
- V-rep学习笔记:碰撞检测与距离计算
- Caocao&#39;s Bridges---hdu4738(桥)