Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
77184 小马同学 x的n次方 C++ Accepted 1 MS 276 KB 213 2024-06-08 15:53:47

Tests(10/10):


Code:

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