xuyangming @ 2024-08-06 13:54:41
#include <iostream>
using namespace std;
int main()
{
long long n,sum = 0,x = 1;
cin >> n;
for (long long i = 1;i <= n;i++)
{
long long j = 1;
while (j <= i)
{
x *= j;
j += 1;
}
sum += x;
x = 1;
}
cout << sum;
return 0;
}
by qazsedcrfvgyhnujijn @ 2024-08-06 14:00:28
《用高精度计算》
by LOvO @ 2024-08-06 14:02:05
@xuyangming 眼角膜不用可以留给有需要的人,题面清清楚楚的写着用高精度计算。。
by superdean @ 2024-08-10 11:17:24
@xuyangming,你叫许洋铭 么
by guoyanwei120223 @ 2024-08-10 14:36:25
@LOvO 有没有一种可能,是他(她)还没学
by LOvO @ 2024-08-10 14:50:21
@guoyanwei120223 没学就学了再做
by guoyanwei120223 @ 2024-08-10 14:57:56
@LOvO 主要是那个课本中题目和洛谷的题目要求不一样
by guoyanwei120223 @ 2024-08-10 14:59:49
@xuyangming 你是不是也没学高精度
我也没学 求关
by GLr137 @ 2024-08-10 17:55:01
《十年OI一场空,不开高精度见祖宗》