목록2024/03/03 (1)
delpho
[실버3, DP] 백준 11726 - 2xn 타일링 (자바)
Think 1. 점화식을 잘못 찾아서 틀렸다. 2. https://yinq.tistory.com/68 를 참고하여 풀었다. 3. 예제를 활용하여 점화식을 검토하는 방법이 있다. 4. 문제를 여러 개 풀면서 여러 점화식을 접해보자. 제출 코드 import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { static int n; static Integer dp[]; static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); static StringT..
알고리즘/DP
2024. 3. 3. 23:02