//java大数
import java.util.Scanner;
import java.math.BigInteger;

public class NF
{
public static void main(String args[])
{
int n;
Scanner cin = new Scanner(System.in);
BigInteger sum;
while (cin.hasNextInt())
{
n = cin.nextInt();
sum = new BigInteger("1");
for (int i=1; i<=n; ++i)
{
sum = sum.multiply(BigInteger.valueOf(i));
}
System.out.println(sum);
}
}
}

 

相关文章:

  • 2022-02-17
  • 2021-10-27
  • 2021-08-31
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-12-13
  • 2021-10-09
  • 2021-05-15
  • 2021-10-18
  • 2021-06-22
  • 2021-09-13
  • 2021-08-15
相关资源
相似解决方案