Run ID:101158

提交时间:2024-12-14 15:16:44

#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 n){ if(n==1) return x; else if(n==0) return 1; else return a(x,n-1)*x; } int main(){ int q,e; cin>>q>>e; cout<<a(q,e); return 0; }