-
[python]백준 Deliv-e-droid 28248번알고리즘 문제풀이/백준(파이썬) 2023. 7. 19. 23:30
코드
import sys sys.stdin = open("28248.txt", "r") a=int(input()) b=int(input()) s=a*50-b*10 if a<=b: pass else: s+=500 print(s)
링크
https://www.acmicpc.net/problem/28248
28248번: Deliv-e-droid
There are $5$ packages delivered, so $5 \times 50 = 250$ points are gained. There are $2$ collisions, so $2 \times 10 = 20$ points are lost. Since $5 > 2$, a bonus $500$ points are earned. Therefore, the final score is $250 - 20 + 500 = 730$.
www.acmicpc.net
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 찬반투표 27736번 (0) 2023.07.21 [python]백준 헛간 청약 19698번 (0) 2023.07.20 [python]백준 폰 노이만과 파리 14924번 (0) 2023.07.18 [python]백준 Chili Peppers 28249번 (0) 2023.07.17 [python]백준 내 학점을 구해줘 10984번 (0) 2023.07.15