Cod sursa(job #2626857)
Utilizator | Data | 8 iunie 2020 18:03:03 | |
---|---|---|---|
Problema | Ridicare la putere in timp logaritmic | Scor | 30 |
Compilator | py | Status | done |
Runda | Arhiva educationala | Marime | 0.16 kb |
f = open("lgput.in", "r")
g = open("lgput.out", "w")
m = 1999999973
words = f.readline().split()
a = int(words[0])
b = int(words[1])
g.write(str(pow(a, b) % m))