boj 11729 java
-
boj)11729 - 하노이 탑 이동 순서PS/boj 2020. 11. 11. 18:37
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 import java.io.*; public class boj_11729 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringBuilder sb = new StringBuilder(); public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); hanoi(1, 3, n); System.out.println((int) (Math.pow(2, n) ..