提交时间:2023-10-04 09:32:09
运行 ID: 104788
#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("%lld", ans); return 0; }