5 条题解

  • 1
    @ 2023-10-20 19:44:59

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

    • 1
      @ 2022-10-29 9:16:13
      1. #include<bits/stdc++.h> using namespace std; int main(){ int a,x; cin>>a; for(int n=1,sum=1;n<=a;n++) { sum=sum*n; x=sum; } cout<<x<<endl; return 0; }
      • -1
        @ 2022-11-5 9:29:56

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

        • -1
          @ 2022-11-4 21:45:44
          #include<bits/stdc++.h>
          using namespace std;
          int main(){
          int a,x;
          cin>>a;
          for(int n=1,sum=1;n<=a;n++) {
          sum=sum*n; x=sum;
          }
          cout<
          
          • -4
            @ 2023-11-18 11:22:05

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

            • 1

            信息

            ID
            34
            时间
            1000ms
            内存
            16MiB
            难度
            3
            标签
            递交数
            534
            已通过
            278
            上传者