지나가던 개발자

[Python] 백준 2845번(파티가 끝나고 난 뒤) 문제 풀이 본문

PS/Python

[Python] 백준 2845번(파티가 끝나고 난 뒤) 문제 풀이

KwonYongHyeon 2022. 2. 18. 18:27

 

people = list(map(int, input().split()))
people = people[0] * people[1]
newspapers = list(map(int, input().split()))
for a in newspapers:
    print(a - people)

 

 P㎡인 공간에서 1㎡ 당 사람이 L 명 왔으니 전체 온 사람 수는 P*L 명이 된다.

Comments