Algorithm

[백준알고리즘] 10039번 / 평균 점수 (python3)

수노 SUNHO 2017. 9. 5. 15:02

https://www.acmicpc.net/problem/10039


# 5명의 점수 받아서 배열에 저장하기

scorelist = []

for _ in range(5):

    score = input()

    scorelist.append(int(score))


# 40점 이하 점수는 40점으로 바꾸기

total = 0 

for score in scorelist:

    if score < 40: 

        score = 40


    total += score


# 평균내기

print(int(total/5))


충격적이었던 숏코딩..

exec"print"+"+max(8,input()/5)"*5




다른 사람 코드 보는게 좋다고는 하나..

나 개발자해도 되는건가?..ㅠㅠ라는 좌절감을 느낄 정도다.. 세상에는 왜애리 잘난사람이 많은 것이야!!!ㅠㅠ 우울해졌다.