본문 바로가기
Beakjoon&프로그래머스/파이썬

[백준/파이썬]9076번 점수 집계

by 현장 2021. 7. 8.

-코드

for _ in range(int(input())):
    n = list(map(int, input().split()))
    n.remove(max(n))
    n.remove(min(n))
    if max(n) - min(n) >= 4:
        print("KIN")
    else:
        print(sum(n))