9095 java
-
boj)9095 - 1, 2, 3 더하기PS/boj 2020. 9. 16. 18:56
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; // # 1, 2, 3 더하기 public class boj_9095 { static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static int[] dp = new int[11]; public static void main(String[] args) throws IOException { int t = Integer.parseInt(br.readLine()); dp[1] = 1; dp[2] = 2; dp[3] = 4; for (int i = 4; i ..