Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
117131 | 罗子童 | x的n次方 | C++ | Wrong Answer | 1 MS | 272 KB | 432 | 2025-04-13 19:04:23 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int a(int x,int y){ if(y==1){ return x; } return a(x,y-1)*2; } int main(){ int x,y; cin>>x>>y; cout<<a(x,y); return 0; }
------Input------
10 7
------Answer-----
10000000
------Your output-----
640