[python/νμ΄μ¬] λ°±μ€ BEAKJOON 2754λ²: νμ κ³μ°
https://www.acmicpc.net/problem/2754
1. λ¬Έμ
2. μ λ΅ λ° νμ΄
score = input()
if score == "A+": print(4.3)
elif score == "A0": print(4.0)
elif score == "A-": print(3.7)
elif score == "B+": print(3.3)
elif score == "B0": print(3.0)
elif score == "B-": print(2.7)
elif score == "C+": print(2.3)
elif score == "C0": print(2.0)
elif score == "C-": print(1.7)
elif score == "D+": print(1.3)
elif score == "D0": print(1.0)
elif score == "D-": print(0.7)
elif score == "F": print(0.0)
μ μΆ κ²°κ³Ό
μ΄ μΈμλ λμ λ리λ₯Ό μ΄μ©ν μ½λκ° μλ€κ³ νλ€.
'SWLUG > λ°±μ€ BEAKJOON' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[python/νμ΄μ¬] λ°±μ€ BEAKJOON 2476λ²: μ£Όμ¬μ κ²μ (0) | 2023.05.22 |
---|---|
[python/νμ΄μ¬] λ°±μ€ BEAKJOON 16430λ²: μ 리μ ν° (0) | 2023.05.17 |
[python/νμ΄μ¬] λ°±μ€ BEAKJOON 4101λ²: ν¬λ? (0) | 2023.05.09 |
[python/νμ΄μ¬] λ°±μ€ BEAKJOON 5337λ²: μ°μ»΄ (0) | 2023.05.06 |
[python/νμ΄μ¬] λ°±μ€ BEAKJOON 2525λ²: μ€λΈ μκ³ (0) | 2023.05.01 |