Topic link: https://www.nowcoder.com/acm/contest/118/E
When I see the big numbers, I directly set JAVA, but later the MekakuCityActors boss told me that we can find the rules (>_<), and if you think about it, you can. The following is my java implementation code:
1 import java.math.BigInteger; 2 import java.util.Scanner; 3 4 5 public class Main { 6 public static void main(String arg[]) { 7 Scanner sc = new Scanner(System.in); 8 while(sc.hasNext()) { 9 int T = sc.nextInt(); 10 while((T--) > 0 ) { 11 BigInteger a = sc.nextBigInteger(); 12 BigInteger b = sc.nextBigInteger(); 13 System.out.println(a.multiply(b)); 14 } 15 } 16 sc.close(); 17 } 18 }