first commit
from old repository to a new repository
This commit is contained in:
14
boj/11047.py
Normal file
14
boj/11047.py
Normal file
@@ -0,0 +1,14 @@
|
||||
n,k=map(int,input().split())
|
||||
oarr=[]
|
||||
for i in range(n):
|
||||
oarr.append(int(input()))
|
||||
|
||||
oarr.reverse()
|
||||
|
||||
count=0
|
||||
for i in oarr:
|
||||
d=int(k/i)
|
||||
k-=(i*d)
|
||||
count+=d
|
||||
|
||||
print(count)
|
||||
Reference in New Issue
Block a user