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