Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
94658 | 梁敖铭 | n的阶乘 | C++ | Wrong Answer | 0 MS | 272 KB | 261 | 2024-10-26 09:41:06 |
#include <iostream> using namespace std; int main() { unsigned int n; unsigned long long factorial = 1; cin >> n; for(int i = 1; i <=n; ++i) { factorial *= i; } cout << n <<factorial; return 0; }
------Input------
6
------Answer-----
720
------Your output-----
6720