Pagini recente » Diferente pentru problema/stirling intre reviziile 14 si 13 | Monitorul de evaluare | Atasamentele paginii Profil arco | Atasamentele paginii cate3cifre | Cod sursa (job #2776666)
#include <bits/stdc++.h>
using namespace std;
ifstream in("lgput.in");
ofstream out("lgput.out");
typedef long long ll;
const ll mod=1999999973;
ll power(ll a,ll b)
{
ll ans=1;
while(b)
{
if(b&1) ans=(ans*a)%mod;
a=(a*a)%mod;
b>>=1;
}
return ans;
}
int main()
{
ll a,b;
in>>a>>b;
out<<power(a,b)<<'\n';
return 0;
}