๐Ÿ ํŒŒ์ด์ฌ ์ƒ์ดˆ์งœ

[BOJ][Python] ๋ฐฑ์ค€ 10039๋ฒˆ: ํ‰๊ท  ์ ์ˆ˜

์„ ๋‹ฌ 2024. 9. 16. 05:23
๋ฐ˜์‘ํ˜•

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)
๋ฐ˜์‘ํ˜•