Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138238 彭士宝 n的阶乘 C++ Accepted 1 MS 272 KB 215 2025-11-23 20:27:30

Tests(5/5):


Code:

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