建议降橙
查看原帖
建议降橙
572891
Run24楼主2024/11/10 19:56
#include <iostream>
using namespace std;
long long n;
signed main(){
	while(cin >> n)
		if(n==0LL || n==1LL)	printf("1\n");
		else printf("%lld\n", 1+n*(n-1)/2+n*(n-1)*(n-2)*(n-3)/4/3/2/1);
    return 0;
}

9行过what can I say?

2024/11/10 19:56
加载中...