The problem is to multiply two integers X, Y . (0 ≤ X,Y < 10250)
Input
The input will consist of a set of pairs of lines. Each line in pair contains one multiplyer.
Output
For each input pair of lines the output line should consist one integer the product.
Sample Input
12 12 2 222222222222222222222222
Sample Output
144 444444444444444444444444
java版的a+b
import java.util.*;
import java.math.*;
public class Main {
public static void main(String args[]) {
Scanner cin = new Scanner(System.in);
BigInteger a,ans,s;
while(cin.hasNext())
{
s=cin.nextBigInteger();
a=cin.nextBigInteger();
ans=a.multiply(s);
System.out.println(ans);
}
}
}