Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
75661 王馨桐 13求n的阶乘 C++ Accepted 0 MS 272 KB 165 2024-05-28 18:38:54

Tests(10/10):


Code:

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