Cod sursa(job #1730029)
| Utilizator | Data | 16 iulie 2016 04:21:32 | |
|---|---|---|---|
| Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
| Compilator | cpp | Status | done |
| Runda | Arhiva educationala | Marime | 0.23 kb |
#include <fstream>
#include <cmath>
using namespace std;
int main()
{
ifstream f("lgput.in");
ofstream g("lgput.out");
int n,p;
f>>n>>p;
long long x;
x=pow(n,p);
x=x%1999999973;
g<<x;
}
