2309

    2309번 파이썬

    import sys input = sys.stdin.readline ary=[int(input()) for i in range(9)] found = False for i in range(8): if found: break for j in range(i+1,9): sum=0 for item in ary: sum+=item a=ary[i] b=ary[j] sum-=(a+b) if sum ==100: ary.remove(a) ary.remove(b) ary.sort() for item in ary: print(item) found = True break