-코드
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))
'Beakjoon&프로그래머스 > 파이썬' 카테고리의 다른 글
[백준/파이썬]5666번 Hot Dogs (0) | 2021.07.12 |
---|---|
[백준/파이썬]5054번 주차의 신 (0) | 2021.07.09 |
[백준/파이썬]3449번 해밍 거리 (0) | 2021.07.07 |
[백준/파이썬]10810번 공 넣기 (0) | 2021.07.07 |
[백준/파이썬]22193번 Multiply (0) | 2021.07.06 |