Tính luỹ thừa

View as PDF



Problem type
Points: 10 (p) Time limit: 1.0s Memory limit: 1G Input: stdin Output: stdout

Cho hai số nguyên dương \(a\)\(n\). Hãy tính \(a^n\).

Dữ liệu vào

  • Một dòng duy nhất ghi hai số nguyên dương \(a(1<a \leq 10^9)\)\(n(1< n \leq 10^9)\)

Dữ liệu ra

Kết quả tính được modulo cho \(10^9+7\)

Sample
Input
5 7
Output
78125

Comments

There are no comments at the moment.