1 条题解
-
1
端木俁 (房佳坤) LV 8 @ 3 年前
- 1
信息
- 难度
- 2
- 分类
- (无)
- 标签
- 递交数
- 11
- 已通过
- 8
- 通过率
- 73%
- 上传者
#include <iostream>
using namespace std;
typedef long long LL;
LL res;
void js(int n)
{
res = 1;
for ( int i = 2; i <= n; i ++ ) res *= i;
}
int main()
{
int n; cin >> n;
js(n);
cout << res;
return 0;
}