Cod sursa(job #1593173)

Utilizator vladdiavlad diaconescu vladdia Data 8 februarie 2016 13:14:13
Problema Ridicare la putere in timp logaritmic Scor 0
Compilator cpp Status done
Runda Arhiva educationala Marime 0.2 kb
#include <fstream>
#include<cmath>
using namespace std;
ifstream in("lgput.in");
ofstream out("lgput.out");
int main()
{
    int n,p;
    in>>n>>p;
     out<<pow(n,p)%1999999973;
    return 0;
}