- 【例29.1】 求阶乘
601
- 2025-3-10 10:35:00 @
#include<bits/stdc++.h> using namespace std; int main(){ int n,sum=1; cin>>n; for(int i=1;i<=n;i++){ sum*=i; } cout<<sum; return 0; }
0 comments
No comments so far...
Information
- ID
- 84
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 5
- Tags
- # Submissions
- 317
- Accepted
- 123
- Uploaded By