10106
用java的大數(shù)類寫的,果然方便
import java.io.BufferedInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.math.BigInteger; import java.util.Scanner;public class Main {public static void main(String[] args) throws FileNotFoundException {// TODO Auto-generated method stub//File file = new File("a.in");Scanner cin = new Scanner(new BufferedInputStream(System.in));BigInteger a, b;while(cin.hasNext()){a = cin.nextBigInteger();b = cin.nextBigInteger();System.out.println(a.multiply(b));}}}
轉(zhuǎn)載于:https://www.cnblogs.com/ACKOKO/articles/2067523.html
總結(jié)
- 上一篇: 网络编程(五) ———— 万字详解TCP
- 下一篇: 对待新知识、新领域的心态——好奇、批判、