| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 149529 | 王峻熙 | 13求n的阶乘 | C++ | Wrong Answer | 0 MS | 268 KB | 331 | 2026-03-14 09:28:36 |
#include <iostream> int main() { int n; std::cin >> n; if (n < 0) { std::cout << "负数没有阶乘" << std::endl; return 1; } unsigned long long result = 1; for (int i = 1; i <= n; ++i) { result *= i; } std::cout << n << result << std::endl; return 0; }
------Input------
11
------Answer-----
39916800
------Your output-----
1139916800