Cod sursa(job #2845518)
Utilizator | Data | 7 februarie 2022 22:25:04 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 10 |
Compilator | cpp-64 | Status | done |
Runda | Arhiva educationala | Marime | 0.25 kb |
#include <iostream>
#include <fstream>
#include <cmath>
using namespace std;
#ifdef LOCAL
ifstream f("input.txt");
#define g cout
#else
ifstream f("lgput.in");
ofstream g("lgput.out");
#endif
int x, y;
int main() {
f >> x >> y;
g << pow(x, y);
}