Pagini recente » Cod sursa (job #1892713) | Cod sursa (job #2485364) | Cod sursa (job #2420706) | Diferente pentru problema/pro3 intre reviziile 15 si 7 | Cod sursa (job #3204336)
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
int main()
{
long long y = 1999999973;
long long N, M;
fin >> N >> M;
long long x;
x = static_cast<long long>(pow(N, M)) % y; // Cast to long long before applying modulus
cout << x;
return 0;
}