Skip to content

Commit 9c1fc9c

Browse files
authored
Create 1106.py
1 parent c35823d commit 9c1fc9c

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

2주차 Knapsack/손영준/1106.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import math
2+
INF = float('inf')
3+
dp = [[INF for _ in range(c+1)]for _ in range(n+1)]
4+
#원하는 인원수를 최소 비용으로 구하는 방법
5+
6+
c,n = map(int, input().split())
7+
hotel = [] #cost, benefit
8+
9+
for i in range(n):
10+
cost, people = map(int, input().split())
11+
hotel.append(cost,people)

0 commit comments

Comments
 (0)