Pagini recente » Cod sursa (job #1209410) | Cod sursa (job #1091118) | Cod sursa (job #1398590) | Diferente pentru problema/cuplaj1 intre reviziile 16 si 15 | Cod sursa (job #1627444)
#include <iostream>
#include <fstream>
#define ll long long
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
const ll MOD = 1999999973;
ll l,n;
ll putere(ll a,ll b)
{
if(b==0)
return 1;
ll q;
q=putere(a,b/2)%MOD;
if(b%2==1)
return (q*q*a)%MOD;
return (q*q)%MOD;
}
int main()
{
fin>>l>>n;
fout<<putere(l,n);
return 0;
}