import sys for line in sys.stdin: l = list(map(int, line.split())) print("ABC"[l.index(sorted(l)[-2])]) if sum(l) - 2*max(l) > 0 else print("ABC"[l.index(max(l))]) Close
PYTHON
|
import sys for line in sys.stdin: l = list(map(int, line.split())) print("ABC"[l.index(sorted(l)[-2])]) if sum(l) - 2*max(l) > 0 else print("ABC"[l.index(max(l))])ClosePYTHON
這是在亂寫嗎?字串轉換成int是甚麼鬼