ACM1000:A + B Problem
2024-10-19 12:42:40
Problem Description
Calculate A + B.
Input
Each line will contain two integers A and B. Process to end of file.
Output
For each case, output A + B in one line.
Sample Input
1 1
Sample Output
2
#include<stdio.h> int main()
{
int a, b; //定义a,b两数
while (scanf("%d%d", &a, &b) == 2) //循环输入a,b
printf("%d\n", a + b); //求a+b,并输出 return 0;
}
最新文章
- Matlab中使用脚本和xml文件自动生成bus模块
- SQLite3中自增主键归零方法
- 12 个 Web 设计师必备的 Bootstrap 工具
- android19以上和以下uri转路径的方法
- 解决AD域认证问题—“未知的身份验证机制”
- 图像本地预览插件(基于JQUERY、HTML5)
- print,print_r,echo,var_dump,var_export比较
- C# 基于委托的事件
- Ubuntu12.04 Jdk1.7 Tomct7.0部署配置
- 一起学习CMake – 02
- mysql中 date datetime time timestamp 的区别
- Python开发【内置模块篇】日志模块
- 2019.03.02 bzoj2565: 最长双回文串(pam)
- OEMbutton乱码问题解决
- jquery插件解读之tabs
- oracle_jdbc_Query
- RF - selenium - open browser
- keil之编辑环境配置
- 用 GitLab CI 进行持续集成
- ubuntu apache2配置,包括虚拟机配置
热门文章
- CMake是用于生成make文件的跨平台编译文件
- background-color和background-image相关细节
- nodejs使用request和bluebird编写的http请求模块
- RabbitMQ之五种消息模型
- spring使用Redis自定义前缀后缀名(去掉SimpleKey []+自定义)
- Spring 通过XML配置装配Bean
- Java构造器(构造方法)与方法区别
- torch.backend.cudnn.benchmark
- P2916 [USACO08NOV]安慰奶牛Cheering up the Cow
- python -- @classmethod @staticmethod区别和使用