Pagini recente » Cod sursa (job #6634) | Cod sursa (job #2033654) | Cod sursa (job #1540055) | Cod sursa (job #2200268) | Cod sursa (job #1092400)
#include <fstream>
#define IN "lgput.in"
#define OUT "lgput.out"
#define MODUL 1999999973
using namespace std;
ifstream fin(IN);
ofstream fout(OUT);
long long int t,k;
long long int putere(int a, int x)
{
if(x==0) return 1;
int y=putere(a,x/2)%MODUL;
if(x%2==0) return ((y%MODUL)*y)% MODUL;
else return (( (y*a)%MODUL)*y)% MODUL;
}
void citire()
{
long long int i,x;
fin>>t>>k;
fout<<putere(t,k)%MODUL<<'\n';
}
int main()
{
citire();
return 0;
}