-
[java]백준 녹색거탑 24723번알고리즘 문제풀이/백준(자바) 2023. 5. 28. 23:22
코드
import java.util.Scanner; public class BOJ_24723 { public static void main(String[] args) { Scanner in =new Scanner(System.in); int s= in.nextInt(); int q= (int)Math.pow(2, s);//(int)제곱 (int)없다면 소수점으로 출력 System.out.println(q); in.close(); } } //제곱
링크
https://www.acmicpc.net/problem/24723
'알고리즘 문제풀이 > 백준(자바)' 카테고리의 다른 글
[java]백준 이상한 기호 15964번 (0) 2023.05.29 [java]백준 Identifying tea 11549번 (0) 2023.05.29 [java]백준 상근이의 친구들 5717번 (0) 2023.05.27 [java]백준 과자 10156번 (0) 2023.05.26 [java]백준 평균 1546번 (0) 2023.05.25