[백준] 1463번 : 1로 만들기
·
📚 Algorithm/백준
1463번: 1로 만들기 첫째 줄에 1보다 크거나 같고, 106보다 작거나 같은 정수 N이 주어진다. www.acmicpc.net 문제 예제 소스 코드 import java.io.*; public class Main { static Integer[] dp; public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); dp = new Integer[N + 1]; dp[0] = dp[1] = 0; System.out.print(recur(N)); } stati..