public class Cross{
public static void main(String[] args){
java.util.Scanner keyin=
new java.util.Scanner(System.in);
while(keyin.hasNext()){
long input1 = keyin.nextLong();
long input2 = keyin.nextLong();
long sum=1;
for(int a=1;a<=input2;a++){
sum*=input1;
}
System.out.println(sum);
}
}
}
不知道是不是還要考慮負數次方??
有請神手XDDD
謝謝