Cod sursa(job #3210944)
Utilizator | Data | 7 martie 2024 19:29:27 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.21 kb |
#include <fstream>
#include <cmath>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
int main(){
int n, p,np;
fin >> n >> p;
np = pow(n, p);
fout << np % 1999999973;
}