提交时间:2023-10-04 09:17:42
运行 ID: 104777
#include <iostream> #include <algorithm> #include <cstdio> #include <cmath> using namespace std; int n; int main() { scanf("%d", &n); long long ans = 1; for (int i = 1;i <= n - 1;i++) ans *= i; printf("%d", ans); return 0; }