Pagini recente » Cod sursa (job #1017809) | Borderou de evaluare (job #2025275) | Cod sursa (job #2004171) | Cod sursa (job #879577) | Cod sursa (job #867951)
Cod sursa(job #867951)
#include <fstream>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
long long power (unsigned int a, unsigned int b)
{
long long x;
if (b==0) return 1;
x=power(a,b/2);
if (b%2) return (x*x*a)%1999999973;
return (x*x)%1999999973;
}
int main ()
{
unsigned int a,b;
fin>>a>>b;
fout<<power(a,b)%1999999973;
}