백준 5904 Moo 게임
-
boj)5904 - Moo 게임PS/boj 2020. 11. 15. 13:00
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 27 28 29 30 31 32 import java.util.Scanner; public class boj_5904 { static Scanner sc = new Scanner(System.in); static int[] dp = new int[30]; public static void main(String[] args) { int N = sc.nextInt(); dp[0] = 3; for (int i = 1; i