Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
137253 彭士宝 n的阶乘 C++ Wrong Answer 2 MS 268 KB 221 2025-11-16 22:09:07

Tests(0/5):


Code:

#include <iostream> using namespace std; int main() { int n; cin >> n; int x = 0; for (int i = 1; i < n; ++i) { x += 1; n = n * x; } cout << n << endl; return 0; }


Run Info:

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