Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
133331 李朋秦 x的n次方 C++ Accepted 1 MS 272 KB 219 2025-10-18 14:56:39

Tests(10/10):


Code:

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