全wa了,求助大佬!
查看原帖
全wa了,求助大佬!
800751
acmwriter楼主2022/10/28 14:59
#include<stdio.h>
int main()
{
    int a,b=0,c=1;
    scanf("%d",&a);
    for(int i=1;i<=a;i++){
        for(int j=i;j>=1;j--)
            c*=j;
            b+=c;
    }
    printf("%d",b);
    return 0;
}
2022/10/28 14:59
加载中...