Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
97045 | 杨一诺 | x的n次方 | C++ | Wrong Answer | 1 MS | 272 KB | 215 | 2024-11-10 11:54:26 |
#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*a,b-1); } } int main(){ cin>>x>>y; cout<<age(x,y); return 0; }
------Input------
10 7
------Answer-----
10000000
------Your output-----
0