[JAVA] 백준, 12865번 평범한 배낭
https://www.acmicpc.net/problem/12865코드import java.io.*;import java.util.*;public class Main { static int n, k; static int[][] dp; static List bags = new ArrayList(); public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(br.readLine()); n = Int..
Algorithm/백준 - Java
2024. 6. 9. 23:55