diff --git a/khj20006/202502/10 BOJ P5 Class Schedule.md b/khj20006/202502/10 BOJ P5 Class Schedule.md new file mode 100644 index 00000000..507a2a33 --- /dev/null +++ b/khj20006/202502/10 BOJ P5 Class Schedule.md @@ -0,0 +1,78 @@ +```java + +import java.util.*; +import java.io.*; + +class Main { + + // IO field + static BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); + static BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); + static StringTokenizer st; + + static void nextLine() throws Exception {st = new StringTokenizer(br.readLine());} + static int nextInt() {return Integer.parseInt(st.nextToken());} + static long nextLong() {return Long.parseLong(st.nextToken());} + static void bwEnd() throws Exception {bw.flush();bw.close();} + + // Additional field + static int[] dp; + static int[][] E, P; + static int C, T, L; + + public static void main(String[] args) throws Exception { + + ready(); + //solve(); + + bwEnd(); + } + + static void ready() throws Exception{ + + int Z = Integer.parseInt(br.readLine()); + while(Z-- > 0) { + nextLine(); + C = nextInt(); + T = nextInt(); + L = nextInt(); + dp = new int[T]; + E = new int[C][T]; + P = new int[C][T]; + for(int i=0;i