https://swexpertacademy.com/main/main.do
SW Expert Academy
SW 프로그래밍 역량 강화에 도움이 되는 다양한 학습 컨텐츠를 확인하세요!
swexpertacademy.com
T = int(input())
for t in range(1,T+1):
scores = list(map(int,input().split()))
new_scores =[]
for score in scores:
if score<40:
score=40
new_scores.append(score)
result = sum(new_scores)//len(scores)
print("#{} {}".format(t,result))
- 63,800 kb메모리
- 1,216 ms실행시간
'Python > code problem' 카테고리의 다른 글
[sw expert academy]13218. 조별과제 (0) | 2022.05.07 |
---|---|
[sw expert academy] 1213. [S/W 문제해결 기본] 3일차 - String (0) | 2022.03.19 |
[sw expert academy] 4751. 다솔이의 다이아몬드 장식 (0) | 2022.01.27 |
[sw expert acadmey] 1234. [S/W 문제해결 기본] 10일차 - 비밀번호 (0) | 2022.01.27 |
[sw expert academy] 10570. 제곱 팰린드롬 수 (0) | 2022.01.27 |