import java.math.BigInteger;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner in =new Scanner(System.in);
BigInteger n=in.nextBigInteger();
BigInteger num1=new BigInteger("1"); //BigInteger的相关用法,这里要注意参与BigInteger运算,所有的数字都要同类型,这里用num将,1,2,3,24转化,还有BigInteger运算时用的是运算函数;
BigInteger num2=new BigInteger("2“);
BigInteger num3=new BigInteger("3”);
BigInteger num4=new BigInteger("24");
System.out.println(n.multiply(n.subtract(num1)).multiply(n.subtract(num2)).multiply(n.subtract(num3)).divide(num4));
}
}
09-06
171
![](https://csdnimg.cn/release/blogv2/dist/pc/img/readCountWhite.png)