提交时间:2024-05-25 14:38:05
运行 ID: 148744
#include <bits/stdc++.h> using namespace std; int main() { int n; long long result = 1; cin >> n; for (int i = 1; i <= n; i++) { result *= i; } cout<< result << endl; return 0; }