Cod sursa(job #2605022)
Utilizator | Data | 24 aprilie 2020 11:56:26 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.23 kb |
#include <bits/stdc++.h>
using namespace std;
ifstream fin("lgput.in");
ofstream fout("lgput.out");
int main() {
unsigned long long n, e, rez;
fin >> n >> e;
rez = pow(n, e);
fout << rez % 1999999973;
}