99클럽 코테 스터디 6일차 TIL + 진짜 공간

Saang Bum Kim·2024년 4월 27일
0

99클럽

목록 보기
14/59

문제

링크텍스트

풀이

  • 한 cluter에 두개 이상의 file을 저장하지 못한다는 것을 명심하면 됨

결과

N = int(input())
fSizes = map(int, input().split())    
cSize = int(input())

from math import ceil

n_cluster = 0
for fSize in fSizes:
    n_cluster += ceil(fSize / cSize)

print(n_cluster*cSize)

profile
old engineer

0개의 댓글