Cod sursa(job #3210942)
Utilizator | Data | 7 martie 2024 19:28:19 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 0 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.19 kb |
#include <fstream>
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;
}