提交时间:2024-05-26 09:30:57

运行 ID: 149263

#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; long long s = 1; for (long long i = 2; i <= n; i++) s *= i; cout << s << endl; return 0; }