Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97054 | 杨一诺 | x的n次方 | C++ | Wrong Answer | 1 MS | 268 KB | 217 | 2024-11-10 11:57:25 |
#include<bits/stdc++.h> using namespace std; int sum; int x,y; int age(int a,int b){ if(b==1){ return a; } else{ return age(a,b-1)*a; } } int main(){ cin>>x>>y; cout<<age(x,y); return 0; }
------Input------
-2 49
------Answer-----
-562949953421312
------Your output-----
0