JAVA 알고리즘
SWEA 1217 (S/W 문제해결 기본) 4일차 - 거듭 제곱
잡다한 저장소
2019. 8. 3. 21:24
import java.util.Scanner;
public class Solution {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
for (int t = 1; t <= 10; t++) {
int t_c = sc.nextInt();
System.out.println("#" + t + " " + (int) Math.pow(sc.nextInt(), sc.nextInt()));
}
}
}