-
[python]백준 점수 집계 9076번알고리즘 문제풀이/백준(파이썬) 2023. 6. 20. 22:36
코드
import sys sys.stdin = open("9076.txt", "r") t=int(input()) for _ in range(t): q=list(map(int,input().split())) q.remove(max(q))#원래리스트에서 max q.remove(min(q))#원래리스트에서 min if max(q)<min(q)+4: print(sum(q)) else: print("KIN")
링크
https://www.acmicpc.net/problem/9076
'알고리즘 문제풀이 > 백준(파이썬)' 카테고리의 다른 글
[python]백준 책 정리 1434번 (0) 2023.06.21 [python]백준 얼마? 9325번 (0) 2023.06.20 [python]백준 배고파(Easy) 28239번 (0) 2023.06.19 [python]백준 코드마스터 2023 28235번 (0) 2023.06.18 [python]백준 조합 0의 개수 2004번 (0) 2023.06.17