高精度,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));
}
}