解题思路:
注意事项:
使用BigInteger大数来做
参考代码:
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); BigInteger x=sc.nextBigInteger(); BigInteger y=sc.nextBigInteger(); //multiply大数相乘 System.out.println(x.multiply(y)); } }
0.0分
1 人评分