当前位置:网站首页>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;
}边栏推荐
- Bugku's Ah Da
- Summary of the third class
- Basic JSON operations of MySQL 5.7
- Common MySQL interview questions
- I include of spring and Autumn
- Ionic Cordova project modification plug-in
- 30岁汇源,要换新主人了
- Redis distributed lock principle and its implementation with PHP (1)
- 六种常用事务解决方案,你方唱罢,我登场(没有最好只有更好)
- Garbage collection mechanism of PHP (theoretical questions of PHP interview)
猜你喜欢

Creation and optimization of MySQL index

Nine hours, nine people, nine doors problem solving Report

Live broadcast preview | how to implement Devops with automatic tools (welfare at the end of the article)

【简记】解决IDE golang 代码飘红报错

P1451 求细胞数量/1329:【例8.2】细胞

Summary of the second lesson

Appium自动化测试基础 — APPium基础操作API(一)

MySQL 巨坑:update 更新慎用影响行数做判断!!!

你童年的快乐,都是被它承包了

Bugku's Ping
随机推荐
你童年的快乐,都是被它承包了
Huiyuan, 30, is going to have a new owner
Ctfshow web entry information collection
String modification problem solving Report
Database learning - Database Security
B站做短视频,学抖音死,学YouTube生?
Bugku's steganography
Ten billion massage machine blue ocean, difficult to be a giant
Good article inventory
Talk about your understanding of microservices (PHP interview theory question)
Advanced level of static and extern
MySQL giant pit: update updates should be judged with caution by affecting the number of rows!!!
Lesson 4 knowledge summary
How to introduce devsecops into enterprises?
Severlet learning foundation
12 MySQL interview questions that you must chew through to enter Alibaba
CODING DevSecOps 助力金融企业跑出数字加速度
Temporary cramming before DFS examination
Garbage collection mechanism of PHP (theoretical questions of PHP interview)
Bugku's Eval