Online Judge——1000.A+B Problem(c++)
Description
作為所有 Online Judge 的傳統題目,你只需讀兩個整數,輸出即可,保證輸入的數絕對值不超過1000。
Input Format
一行,兩個空格隔開的整數A,B。
Output Format
一個數A+B。
Sample Input
3 2
Sample Output
5
程式碼:
#include <iostream>
using namespace std;
int main()
{
int a, b;
while(cin >> a >> b)
cout << a + b << endl;
return 0;
}
相關文章
- Online Judge計算整數的和
- 帶你快速搭建自己的Online Judge平臺
- jquery judge element existjQuery
- Aizu Online Judge Introduction to Programming I C語言實現 ITP1 Topic # 1AIC語言
- After convers to Snap SB experi problem archiv its own online redo_1545846.1
- Problem_2 Majority Problem
- The 2024 ICPC Asia EC Regionals Online Contest (II) - Problem B. Mountain BookingAI
- The 2024 ICPC Asia EC Regionals Online Contest (II) - Problem H. Points Selection
- YTU-OJ-Problem C: C++習題 抽象基類C++抽象
- Mathematical Problem
- Common class for judge IPV6 or IPV4
- FZU Problem 1692 Key problem(迴圈矩陣)矩陣
- ACM A problem is easyACM
- Database Transaction ProblemDatabase
- Yet Another Problem
- leetCode(Using C)——657. Judge Route CircleLeetCode
- Fixed "There was a problem with the editor 'vi'"
- STL iterator delete problemdelete
- E. Not a Nim Problem
- create index online 與rebuild index onlineIndexRebuild
- create index online 與rebuild index onlineIndexRebuild
- HDU 1792 A New Change Problem
- Joe Harris is a real problem with this team
- The Door Problem 並查集並查集
- 3339: Rmq ProblemMQ
- ORB problem determinationORB
- Nanami and the Constructive ProblemNaNStruct
- YTU-OJ-Problem D: C++習題 虛擬函式-計算圖形面積C++函式
- rebuild index online和create index online及沒有online的區別RebuildIndex
- Online Redefinition
- css/js online online code editor/formator/debugerCSSJSORM
- Assignment Problem的若干思考
- Problem 4:替換空格(字串)字串
- [Algorithm] 1. A+B ProblemGo
- A - Yet Another Two Integers Problem ACMACM
- NC17383 A Simple Problem with Integers
- HDU5293 : Tree chain problemAI
- 【poj3468】A Simple Problem with Integers