Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
4691 黄宜洋 13求n的阶乘 C++ Accepted 0 MS 272 KB 198 2024-09-07 15:02:31

Tests(10/10):


Code:

# include<iostream> using namespace std; int main(){ long long n,s=1; scanf("%lld",&n); for(int i=1;i<=n;i++){ s*=i; } printf("%lld",s); return 0; }