본문 바로가기
Beakjoon&프로그래머스/Java

[백준/Java] 24723번 녹색거탑

by 현장 2025. 12. 27.

-Code

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class BOJ24723 {
    public static void main(String[] args) throws IOException {
        BufferedReader br =
                new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());
        System.out.println((int) Math.pow(2, n));
    }
}