Cod sursa(job #3037950)
Utilizator | Data | 26 martie 2023 18:16:57 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.24 kb |
#include <fstream>
#include <cmath>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
long long n,p;
int main()
{
fin>>n>>p;
unsigned long long int poww=pow(n,p);
fout<<poww%1999999973;
return 0;
}