poj2389

高精度,java做

View Code
import java.util.*;
import java.io.*;
import java.math.*;

public class Main {
static public void main(String args[]) throws FileNotFoundException{
Scanner cin
= new Scanner(new BufferedInputStream(System.in));
//Scanner cin = new Scanner(new FileInputStream("t.txt"));
String s1 = cin.next();
String s2
= cin.next();
BigInteger a
= new BigInteger(s1);
BigInteger b
= new BigInteger(s2);
System.out.println(a.multiply(b));
}
}

posted @ 2011-05-25 12:36  undefined2024  阅读(194)  评论(0)    收藏  举报