11726 2xn 타일링 (JAVA)
·
Computer Science/PS
●다이나믹 알고리즘 2xN 크기의 직사각형을 1x2, 2x1 타일로 채우는 방법의 수를 구하는 문제이다. import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { static PriorityQueue que = new PriorityQueue(); public static void main(String[] args) throws Exception { BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine())..