1463번
-
1463번 1로 만들기 / BOJ / acmicpc.net백준 2020. 1. 27. 22:38
문제링크 : https://www.acmicpc.net/problem/1463 제출링크 : https://www.acmicpc.net/source/17152022 import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[] dp = new int[N+1]; for(int n=2; n