본문 바로가기

Programming [Python]/백준 알고리즘 솔루션

#312 백준 파이썬 [ 2845] 파티가 끝나고 난 뒤

https://www.acmicpc.net/problem/2845

 

PYTHON CODE

L, P = map(int, input().split())
news = list(map(int, input().split()))
for i in news:
    print(i - L * P, end = ' ')