코딩 문제풀이 및 연습/Python 연습
[백준] 21612_Boiling Water 파이썬
starnova
2021. 7. 19. 01:16
1
2
3
4
5
6
7
8
9
10
11
|
B = int(input())
P = 5 * B - 400
print(P)
sea_level = 100
if (P < sea_level):
print(1)
elif (P > sea_level):
print(-1)
else:
print(0)
|
cs |
출처: https://www.acmicpc.net/problem/21612
21612번: Boiling Water
At sea level, atmospheric pressure is 100 kPa and water begins to boil at 100◦C. As you go above sea level, atmospheric pressure decreases, and water boils at lower temperatures. As you go below sea level, atmospheric pressure increases, and water boils
www.acmicpc.net