HDU-1000-A + B Problem
今天決定gang HDU 用java語言從最簡單的開始吧
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner cin=new Scanner(System.in);
while(cin.hasNext()){
int a=cin.nextInt();
int b=cin.nextInt();
System.out.println(a+b);
}
}
}
相關推薦
hdu 1000 A + B Problem
esc urn rip end ostream accep others cstring line A + B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Ja
HDU-1000 A + B Problem
amp ostream case ace sam script pre code blog 題目 Problem Description Calculate A + B. Input Each line will contain two integers A and
HDU-1000——A+B problem
A+B problem Calculate A + B. Input Each line will contain two integers A and B. Process to end of file. Output For eac
hdu刷題之路——hdu 1000 A + B Problem
hdu刷題之路 hdu 1000 A + B Problem (水題入門) Problem Description Calculate A + B. Input Each line will contain two integers A and B. Process to end
HDU-1000-A + B Problem
今天決定gang HDU 用java語言從最簡單的開始吧 import java.util.*; public class Main { public static void main(Str
HDU 1402 A * B Problem Plus FFT
contain linker pri span stack pragma mod exce problem A * B Problem Plus Problem Description Calculate A * B. Input Each line
HDU 1402 A * B Problem Plus ——(大數乘法,FFT)
兩個 ret 處理 complex truct std spa strlen mes 因為剛學fft,想拿這題練練手,結果WA了個爽= =。 總結幾點犯的錯誤: 1.要註意處理前導零的問題。 2.一定要註意數組大小的問題。(前一個fft的題因為沒用到b數組,
題解報告:hdu 1002 A + B Problem II(大數加法)
return 大數類 class family HERE contains urn integer ons Problem Description I have a very simple problem for you. Given two integers A and
HDU - 1402 A * B Problem Plus FFT裸題
swa complex asn 直線 lse () strlen mod -i http://acm.hdu.edu.cn/showproblem.php?pid=1402 題意: 求$a*b$ 但是$a$和$b$的範圍可以達到 $1e50000$ 題解: 顯然..
HDU 1402 A * B Problem Plus ( FFT )
amp hid sin 兩個 close 形式 hide utc closed 題意 : 求兩個大數相乘的結果 分析 : 可以將數拆成多項式的形式 例如 12345 (1 * x^4) + (2 * x^3) + (3 * x^2) + (4 * x^1) + (5 *
HDU-1000 A+B Problm (語法練習題)
A+B Problem A + B Problem Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 832597 Accepted
HDU-2101 A + B Problem Too(語法練習題)
A + B Problem Too Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 20917 Accepted Submissio
HDU - 2101 A + B Problem Too【水題】
A + B Problem Too Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Submission(s): 21290 Accepted Submissio
HDU 1002 A + B Problem II
A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 439087
SJTUOJ 1000. A+B Problem
起因 最近發現了交大的OlineJudge,遂決定做做題目陶冶一下情操。 題目描述 Description 作為所有 Online Judge 的傳統題目,你只需讀兩個整數,輸出即可,保證輸入的數絕對值不超過1000。 Input Format 一行,兩個空格隔開的整數A,B
HDU 1002 ( A + B Problem II )
A + B Problem II Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) To
HDU 1002 A + B Problem II C++解法
一開始我是用char 陣列做的,但是後來覺得好麻煩,於是就用string物件來做,畢竟C++本來就是OOP語言 不多說,直接上程式碼: #include <iostream> #incl
HDU 1402(A * B Problem Plus-FFT速度測試)
A * B Problem Plus Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 15111 Acc
杭電ACM—HDU 1002 A + B Problem II
題目連結:http://acm.hdu.edu.cn/showproblem.php?pid=1002 題目: Problem Description I have a very simple problem for you. Given two integers A
杭電 HDU 1002 A + B Problem II Java 大數的初級用法
<a target=_blank href="http://acm.hdu.edu.cn/showproblem.php?pid=1002">點選開啟連結</a> import