提交时间:2024-05-25 15:25:14

运行 ID: 148977

#include<bits/stdc++.h> #define ll long long using namespace std; ll int n; ll int calc(ll int n){ if(n<2)return 1; else return calc(n-1)*n; } int main(){ cin>>n; cout.precision(0); cout<<calc(n)<<fixed<<endl; }