1028 large number multiplication V2
Base time limit: 2 seconds Space limit: 131072 KB score: 80 Difficulty: 5-level algorithm The problem gives 2 large integers, a, B, calculates the results of the a*b. Input
Line 1th: Large number A 2nd row: Large number B (A, a, a <= 100000,a,b >= 0)
Output
Output A * B
Input example
123456234567
Output example
28958703552
Topic Link: http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1028 Analysis: Learn a simple Java, to experience a wave of Java's cool sense, Java Dafa really good ah! The AC code is given below:
1 ImportJava.math.BigInteger;2 ImportJava.util.Scanner;3 4 5 Public classSSS {6 7 /**8 * @paramargs9 */Ten Public Static voidMain (string[] args) { One //TODO auto-generated Method Stub AScanner in=NewScanner (system.in); - BigInteger A, b; -A=In.nextbiginteger (); theb=In.nextbiginteger (); - System.out.println (a.multiply (b)); - } -}
1028 Nod multiplication V2 "Java large number of mess"