123456789101112131415161718192021222324252627
import java.math.BigInteger; import java.util.Scanner; class Test { public static void main(String[] args) { BigInteger[] muls = new BigInteger[1000]; Scanner gets = new Scanner(System.in); int n = gets.nextInt(); for(int i = 1; i<=n; i++) { String input = gets.nextLine(); String[] input_s = input.split(" "); BigInteger x = new BigInteger(input_s[0]); BigInteger y = new BigInteger(input_s[1]); muls[i-1] = x.multiply(y); } for(int j = 0; j<n; j++) { System.out.println(muls[j]); } } }