Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
155413 黎瑾萱 x的n次方 C++ Accepted 2 MS 272 KB 224 2026-06-07 11:35:04

Tests(10/10):


Code:

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