给定两个整数 ( a ) 和 ( n ),计算 ( a ) 的 ( n ) 次幂,即 ( a^n )。请你用程序实现。
一行,包含2个正整数 a和非负整数n。(1≤a≤10,0≤n≤10)
输出一个整数,表示 a^n 的结果。
2 10
1024
3 0
1
快速幂