| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 126605 | 杨博煊 | 计算n的阶乘 | C++ | Accepted | 100 | 0 MS | 240 KB | 158 | 2024-01-24 16:46:04 |
#include<bits/stdc++.h> using namespace std; int main(){ long long a,n = 1,i; cin>>a; for(i = 1;i <= a;i++){ n = n * i; } cout<<n<<endl; }