WAWAWAWA

P1009 [NOIP1998 普及组] 阶乘之和

BH3rd @ 2023-03-07 13:53:18

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,s=1;
    cin>>n;
    {
        s=s*(n-i);
    }
    cout<<s<<endl;
    return 0;
}

by walk_out_study @ 2023-03-07 15:39:43


by walk_out_study @ 2023-03-07 15:41:28

首先,你没写for循环
其次,题目说了要用高精度。。。


by walk_out_study @ 2023-03-07 15:42:34

@BH3rd 额


by BH3rd @ 2023-03-08 09:46:00

高精度我不会啊


by BH3rd @ 2023-03-08 09:46:37

能不能跟我说一下


by BH3rd @ 2023-03-08 09:47:49

@linglingzi


|