Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
117130 罗子童 x的n次方 C++ Wrong Answer 1 MS 268 KB 432 2025-04-13 19:04:23

Tests(0/10):


Code:

#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; }


Run Info:

------Input------
10 7
------Answer-----
10000000
------Your output-----
640