Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
103785 吴国懋 x的n次方 C++ Time Limit Exceeded 1000 MS 268 KB 226 2024-12-29 15:16:16

Tests(0/10):


Code:

#include<bits/stdc++.h> using namespace std; long long cf(long long x,long long n){ if(x==0){ return 1; }else{ return x*cf(x,n-1); } } int main(){ long long a,b; cin>>a>>b; cout<<cf(a,b); return 0; }