#include <cstdio>
long long f(int n,int k)
{
if(k==0)
return 1;
if(n==1)
return 1;
if(n==-1)
{
if(k%2==0)
return 1;
else
return -1;
}
return n*f(n,k-1);
}
int main()
{
int n,k;
scanf("%d %d",&n,&k);
printf("%lld",f(n,k));
return 0;
}
/*
0
1
10
11
100
2^31-1
2^63-1n */
To embed this project on your website, copy the following code and paste it into your website's HTML: