Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138236 彭士宝 n的阶乘 C++ Wrong Answer 1 MS 276 KB 179 2025-11-23 20:22:01

Tests(0/5):


Code:

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


Run Info:

------Input------
6
------Answer-----
720
------Your output-----
-1420957696