Tính luỹ thừa
View as PDF
Submit
Problem types
Allowed languages
Assembly, Awk, Brain****, C, C++, Java, Pascal, Perl, Python, SCRATCH, Sed, Text
Points:
900 (p)
Time limit:
1.0s
Memory limit:
1G
Input:
stdin
Output:
stdout
Cho hai số nguyên dương \(a\) và \(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)\) và \(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