배낭 문제2 [백준] 12865번 '평범한 배낭' - Java 문제 코드 맞았습니다가 뜬 코드입니다. - 메모리 53980KB | 시간 196ms | 코드 길이 1069B import java.io.*; import java.util.*; public class Main { private static final BufferedReader bf = new BufferedReader(new InputStreamReader(System.in)); private static final BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out)); public static void main(String[] args) throws IOException { StringTokenizer st = new St.. 2023. 7. 5. [백준] 1315번 배낭 - Python 백준 실버3 1315번 배낭 - Python https://www.acmicpc.net/problem/1535 1535번: 안녕 첫째 줄에 사람의 수 N(≤ 20)이 들어온다. 둘째 줄에는 각각의 사람에게 인사를 할 때, 잃는 체력이 1번 사람부터 순서대로 들어오고, 셋째 줄에는 각각의 사람에게 인사를 할 때, 얻는 기쁨이 1번 www.acmicpc.net 문제 코드 맞았습니다가 뜬 코드입니다. - 메모리 31256KB | 시간 40ms | 코드 길이 371B N = int(input()) L = [int(x) for x in input().split()] J = [int(x) for x in input().split()] L, J = [0] + L, [0] + J dp = [[0 for _ in ran.. 2023. 2. 21. 이전 1 다음