题目链接:https://www.nowcoder.com/acm/contest/118/E

看到大数直接套JAVA,但是后面MekakuCityActors大佬和我说可以找规律(>_<),仔细想想确实可以(顺便%MekakuCityActors大佬),下面是我的java实现代码:

 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 }

 

相关文章:

  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2022-12-23
  • 2021-06-16
  • 2021-12-24
  • 2021-06-14
  • 2021-09-07
  • 2021-11-11
相关资源
相似解决方案