当前位置:网站首页>Noi / 1.3 01: a+b problem
Noi / 1.3 01: a+b problem
2022-07-05 15:35:00 【Graylan_】
describe
In most online question banks , Will be A+B Question as the first question , To help novice familiar with the use of the platform .
A+B The title of the problem is described below : Given two integers A and B, Output A+B Value . Guarantee A、B And the results are in the integer range .
Now please solve this problem .
Input
a line , Contains two integers A,B, Separate them with a single space .A and B All within the integer range .
Output
An integer , namely A+B Value . Ensure that the result is within the integer range .
The sample input
1 2
Sample output
3
Source code :
#include <iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
cout <<a+b<< endl;
return 0;
}边栏推荐
猜你喜欢
![P6183 [USACO10MAR] The Rock Game S](/img/f4/d8c8763c27385d759d117b515fbf0f.png)
P6183 [USACO10MAR] The Rock Game S

力扣今日题-729. 我的日程安排表 I

社区团购撤城“后遗症”

一文搞定vscode编写go程序

Transfer the idea of "Zhongtai" to the code

I spring and autumn blasting-1

How to paste the contents copied by the computer into mobaxterm? How to copy and paste

Summary of the third class

Codasip为RISC-V处理器系列增加Veridify安全启动功能

P1451 求细胞数量/1329:【例8.2】细胞
随机推荐
Bugku's Eval
Analytic hierarchy process of mathematical modeling (including Matlab code)
Huawei Hubble incarnation hard technology IPO harvester
Xiao Sha's arithmetic problem solving Report
Talk about your understanding of microservices (PHP interview theory question)
No one consults when doing research and does not communicate with students. UNC assistant professor has a two-year history of teaching struggle
Bugku's steganography
Common MySQL interview questions
JS knowledge points-01
【 note 】 résoudre l'erreur de code IDE golang
Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)
数学建模之层次分析法(含MATLAB代码)
I spring and autumn blasting-1
Detailed explanation of C language branch statements
Reasons and solutions for redis cache penetration and cache avalanche
[brief notes] solve the problem of IDE golang code red and error reporting
Where is the operation of convertible bond renewal? Is it safer and more reliable to open an account
你童年的快乐,都是被它承包了
Bubble sort, insert sort
sql server学习笔记