1463 1로 만들기 java
-
boj)1463 - 1로 만들기PS/boj 2020. 9. 16. 17:37
import java.io.*; // # 1로 만들기 public class boj_1463 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static int[] dp = new int[1000001]; public static void main(String[] args) throws IOException { int n = Integer.parseInt(br.readLine()); dp[2] = 1; dp[3] = 1; for (int i = 4; i