#include<iostream>
#include<cstdio>
#include<cmath>
using namespace std;
int f(int x,int n)
{
    int now=1;
    while(n)
    {
        if(n&1)
        {
            now=now*x;
        }
        x=x*x;
        n>>=1;
    }
    return now;
}
int main()
{
    int x,n;
    cin>>x>>n;
    cout<<f(x,n);
    return 0;
}

 

相关文章:

  • 2021-12-07
  • 2022-02-26
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-08-30
  • 2022-02-06
  • 2021-07-10
  • 2021-06-10
相关资源
相似解决方案