POJ 1000
来源:互联网 发布:ubuntu likewise open 编辑:程序博客网 时间:2024/06/07 16:36
POJ 1000
A+B Problem
Time Limit: 1000MS
Memory Limit: 10000K
Total Submissions: 291052
Accepted: 158953
Description
Calculate a+b
Input
Two integer a,b (0<=a,b<=10)
Output
Output a+b
Sample Input
1 2
Sample Output
3
代表意义的一道题了= =
问题翻译:计算a+b的值
输入:两个整数a和b,输出:a+b的值
C++代码:
#include <iostream> using namespace std; int main(){ int a,b; while(cin>>a>>b) {cout<<a+b<<endl;} //while语句用于重复读入 return 0;}
小结: C++中重复读入语句:while(cin>>a>>b) 很简洁
第一次打代码include前面居然忘了打#,这是有多弱= =
- poj 1000
- POJ 1000
- poj 1000
- poj 1000
- POJ 1000
- poj 1000
- poj 1000
- PoJ 1000
- POJ 1000
- poj 1000
- #1000 POJ
- POJ-1000
- POJ 1000
- POJ 1000
- POJ 1000
- poj 1000 a+b
- POJ 1000-1099
- poj 1000 入门题
- 怎样解决CodeBlocks运行VS编写的OpenGL项目时遇到的各种问题的
- 游戏英语单词
- 1 认识linux
- dedecms推荐文章的标题加粗
- JAVA之Socket编程初步学习
- POJ 1000
- 2 文件权限与目录配置
- C# virtual sealed 索引
- 【Kernel学习】基础篇——01一些标准宏定义和文件include关系
- 解决selinux禁止httpd连接mysql
- 设计模式之访问者模式
- Spring声明式事务配置管理方法
- 3 磁盘与文件系统管理
- 使用Memory Analyzer tool(MAT)分析内存泄漏