Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
67677 殷震轩 n的阶乘 C++ Accepted 1 MS 272 KB 197 2024-03-17 12:03:56

Tests(5/5):


Code:

#include<bits/stdc++.h> using namespace std; int y(int x){ if(x==1){ return 1; x++; }else{ return x*y(x-1); } } int main(){ int t; cin>>t; t=y(t); cout<<t; return 0; }