A_B problem
計算A + B.
Input
多組輸入,每行2個整數A,B
A,B的範圍不超過 int
Output
對於每組測試
輸出一行,包含一個數字,即為A+B的和
Sample Input
1 1
100 1000
Sample Output
2
200
#include<stdio.h>
int main (){
int m,n;
while (~scanf("%d%d",&m,&n))
printf("%d\n",m+n);
return 0;
}
相關推薦
A_B problem
計算A + B. Input 多組輸入,每行2個整數A,B A,B的範圍不超過 int Output 對於每組測試 輸出一行,包含一個數字,即為A+B的和 Sample Input 1 1 100 1000 Sample Output 2 200 #include<
Codeforces 803G Periodic RMQ Problem ST表+動態開節點線段樹
ces 細節 ren urn 區間覆蓋 d+ ins cstring pro 思路: (我也不知道這是不是正解) ST表預處理出來原數列的兩點之間的min 再搞一個動態開節點線段樹 節點記錄ans 和標記 lazy=-1 當前節點的ans可用 lazy=0 沒被
Problem F: 分數類的類型轉換
處理 都是 mas show urn 現在 輸入 names 註意 Description 封裝一個分數類Fract,用來處理分數功能和運算,支持以下操作: 1. 構造:傳入兩個參數n和m,表示n/m;分數在構造時立即轉化成最簡分數。 2. show()函數:分數輸出
code force 798cMike and gcd problem
sub while 並且 cati put ins i++ des 替代 Mike has a sequence A?=?[a1,?a2,?...,?an] of length n. He considers the sequence B?=?[b1,?b2,?...,?b
codeforces 798C Mike and gcd problem
opera can sample pan using str ssl else font C.Mike and gcd problem Mike has a sequence A?=?[a1,?a2,?...,?an] of length n. He cons
NOIP2012提高組 Day 2 Problem 2 借教室
修改 () else 時間復雜度 希望 logs 樸素 main 差分 原題 題目描述 在大學期間,經常需要租借教室。大到院系舉辦活動,小到學習小組自習討論,都需要向學校申請借教室。教室的大小功能不同,借教室人的身份不同,借教室的手續也不一樣。 面對海量租借教室的信息,我
1022 Train Problem I
details stat i++ exchange -a rmi == amp this Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Sub
解決Problem with writing the data, class java.util.ArrayList, ContentType: application/xml
writing 數據庫 今天,在使用cxf讀取內網數據庫的數據時,報以下一個錯誤Problem with writing the data, class java.util.ArrayList, ContentType: application/xml以上錯誤提示我們,在寫入數據時有錯誤,最後經檢查
php SSL certificate problem: unable to get local issuer certificate
param response clas function -type span head urn content 加上 curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,FALSE); 就可以了 百度語音的demo: <?php
Problem B: Excuses, Excuses!
single note sample size ask height ica them cas Description Judge Ito is having a problem with people subpoenaed for jury duty givin
FZOJ Problem 2148 Moon Game
坐標 title ado draw pla nes scrip lin spec Pr
P1865 A % B Problem
code 輸入輸出 說明 tin else 描述 sca ++ return 題目背景 題目名稱是吸引你點進來的 實際上該題還是很水的 題目描述 區間質數個數 輸入輸出格式 輸入格式: 一行兩個整數 詢問次數n,範圍m 接下來n行,每行兩個整數 l,r
poj3511--A Simple Problem with Integers(線段樹求和)
poj pac style som can com onos roman miss A Simple Problem with Integers Time Limit: 5000MS Memory Limit: 131072K
Codeforces Round#413 Problem A - C
false font vector for循環 type als 不存在 pac 鏈接 [寫在前面感(亂)嘆(七)人(八)生(糟)的話] 本想借此機會一口氣玩到藍名,結果,A題寫炸(少判了一種情況),C題寫炸(辜負了我5分鐘狂敲出來的線段樹),結果又掉Rating..
【數論線性篩】洛谷P1865 A%B problem
continue 個數 區間 str 輸出 數據 兩個 裸題 n) 題目背景 題目名稱是吸引你點進來的 實際上該題還是很水的 題目描述 區間質數個數 輸入輸出格式 輸入格式: 一行兩個整數 詢問次數n,範圍m 接下來n行,每行兩個整數 l,r 表示區間 輸出格式:
FZOJ Problem 2150 Fire Game
gin line bool include date log mini ould 最短
hdu5296(2015多校1)--Annoying problem(lca+一個公式)
time out make conn tca put eight pri puts Annoying problem Time Limit: 16000/8000 MS (Java/Others) Memory Limit: 65536/65536 K (Ja
第十五周oj刷題——Problem M: C++習題 矩陣求和--重載運算符
des fcm 輸出 content 運算符 reserve int 習題 tor Description 有兩個矩陣a和b,均為2行3列。求兩個矩陣之和。重載運算符“+”,使之能用於矩陣相加(如c=a+b)。 重載流插入運算符“<&l
P1303 A*B Problem
cst clu ont tdi cnblogs ring b- max can 題目描述 求兩數的積。 輸入輸出格式 輸入格式: 兩個數 輸出格式: 積 輸入輸出樣例 輸入樣例#1: 1 2
HDU 5402 Travelling Salesman Problem
algorithm else panel ati cin display eight etc maximum Problem Description Teacher Mai is in a maze with n rows and m columns.