본문 바로가기
python-algorithm

[백준] 9076

by 무적김두칠 2021. 1. 10.

1
2
3
4
5
6
import sys
for i in range(int(sys.stdin.readline())):
    tmp=list(map(int, sys.stdin.readline().split()))
    tmp.sort()
    if tmp[3]-tmp[1]>3print("KIN")
    else:print(sum(tmp)-min(tmp)-max(tmp))
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 9546  (0) 2021.01.10
[백준] 9086  (0) 2021.01.10
[백준] 9070  (0) 2021.01.10
[백준] 9046  (0) 2021.01.10
[백준] 8958  (0) 2021.01.10

댓글