样例是不是错了
#include<bits/stdc++.h> using namespace std; int main() { int n,S=1; cin>>n; for(;n>0;n--) S*=n; cout<<S; return 0; }