Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
78642 石茂诤 x的n次方 C++ Accepted 1 MS 272 KB 205 2024-06-23 14:07:50

Tests(10/10):


Code:

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