继续学习Java高精度,今天写的是求N!. 首先附上源代码: import java.util.Scanner; import java.math.BigInteger; public class Main { public static void main(String []args) { Scanner cin = new Scanner(System.in); BigInteger a,n,i; while(cin.hasNext()) { a = cin.nextBigInteger()…
java高精度尝试, poj2109,比较坑的题目 import java.io.*; import java.util.*; import java.math.*; public class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); BigInteger mod = BigInteger.valueOf(1); while(in.hasNext()) { int k…