LL其实代表long long,*1LL是为了在计算时,把int类型的变量转化为long long,然后再赋值给long long类型的变量
LL
long long
*1LL
int
ANS=1LL*num*((1LL)*n*(n-1))/2;