백준

백준 24723 - Java

으엉어엉 2024. 9. 9. 11:22
728x90

 

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

public class GreenTop {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        int N = Integer.parseInt(br.readLine());
        int result = (int) Math.pow(2, N);
        System.out.println(result);
    }
}
728x90

'백준' 카테고리의 다른 글

백준 11050 - Java  (0) 2024.09.09
백준 10872 - Java  (0) 2024.09.09
백준 15439 - Java  (0) 2024.09.09
백준 2346 - Java  (1) 2024.09.08
백준 28279 - Java  (0) 2024.09.07