package가 도착하면 50 points를 얻고 collision마다 10 points가 차감된다.
도착이 collision보다 많으면 500을 더해 출력한다.
p=int(input())
c=int(input())
point=p*50-c*10
if p>c:
point+=500
print(point)
'BOJ > Python' 카테고리의 다른 글
[BOJ/백준] 20233 - Bicycle (Python) (1) | 2024.09.08 |
---|---|
[BOJ/백준] 28453 - Previous Level (Python) (0) | 2024.09.04 |
[BOJ/백준] 20353 - Atrium (Python) (0) | 2024.09.04 |
[BOJ/백준] 32154 - SUAPC 2024 Winter (Python) (1) | 2024.09.02 |
[BOJ/백준] 20232 - Archivist (Python) (0) | 2024.09.02 |