Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117660 欧阳俊懿 x的n次方 C++ Accepted 2 MS 268 KB 209 2025-04-19 17:14:05

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; }