#我還想說這樣寫比較簡單 結果更複雜..#想法反正就是找max 然後移掉 再看剩餘的 兩個元素sum有沒有大於maxtry:while True:dic ={0:"A", 1:"B", 2:"C"}list1 = [int(c) for c in input().split()]imax = list1.index(max(list1))Max =list1[imax]list1[imax] = 0if Max>sum(list1):print(dic[imax])else:print(dic[list1.index(max(list1))])except EOFError:pass
while True:
try:
l=list(map(int,input().split()))
print(["A","B","C"][l.index(sum(l)-max(l)-min(l))] if sum(l)-max(l)>max(l) else ["A","B","C"][l.index(max(l))])
except:
break
#我還想說這樣寫比較簡單 結果更複雜..#想法反正就是找max 然後移掉 再看剩餘的 兩個元素sum有沒有大於maxtry:while True:dic ={0:"A", 1:"B", 2:"C"}list1 = [int(c) for c in input().split()]imax = list1.index(max(list1))Max =list1[imax]list1[imax] = 0if Max>sum(list1):print(dic[imax])else:print(dic[list1.index(max(list1))])except EOFError:passwhile True:
try:
l=list(map(int,input().split()))
print(["A","B","C"][l.index(sum(l)-max(l)-min(l))] if sum(l)-max(l)>max(l) else ["A","B","C"][l.index(max(l))])
except:
break
這樣更簡潔