๋ฐ์ํ
https://www.acmicpc.net/problem/10039
scores = []
for i in range(5):
score = int(input())
scores.append(score)
sum = 0
for score in scores:
if score < 40:
sum += 40
else :
sum += score
print(sum//5)
๋ฐ์ํ
'๐ ํ์ด์ฌ ์์ด์ง' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[BOJ][Python] ๋ฐฑ์ค 1010๋ฒ: ๋ค๋ฆฌ ๋๊ธฐ (0) | 2024.09.27 |
---|---|
[BOJ][Python] ๋ฐฑ์ค 10156๋ฒ: ๊ณผ์ (0) | 2024.09.23 |
[BOJ][Python] ๋ฐฑ์ค 10797๋ฒ: 10๋ถ์ (0) | 2024.09.22 |
[BOJ][Python] ๋ฐฑ์ค 10101๋ฒ: ์ผ๊ฐํ ์ธ์ฐ๊ธฐ (1) | 2024.09.18 |
[BOJ][Python] ๋ฐฑ์ค 5543๋ฒ: ์๊ทผ๋ ๋ (0) | 2024.09.17 |