https://www.acmicpc.net/problem/21633
1
2
3
4
5
6
7
8
9
10
11
|
def sol(n):
answer = 25 + n*0.01
if answer >=2000:
answer = 2000
elif answer <=100:
answer = 100
return answer
if __name__ == '__main__':
n = int(input())
print("%.2f"%sol(n))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 24075 計算 (Calculation) (0) | 2022.12.21 |
---|---|
백준 21354 Äpplen och päron (0) | 2022.12.21 |
백준 13580 Andando no tempo (0) | 2022.12.21 |
백준 21335 Another Eruption (0) | 2022.12.21 |
백준 20215 Cutting Corners (0) | 2022.12.21 |
댓글