Monday, June 15, 2015

UVa 10106 - Product

// UVa 10106 - Product
import java.math.BigInteger;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		while (scanner.hasNextBigInteger()) {
			BigInteger a = scanner.nextBigInteger();
			BigInteger b = scanner.nextBigInteger();
			System.out.println(a.multiply(b));
		}
	}

}

No comments:

Post a Comment