ans记录[begin,end,height] inps=list(map(int,input().split(','))) ans=[] finish=[] for i in range(len(inps)): if i not in finish: is_find=False for j in range(i+1,len(inps)): if inps[j]>=inps[i]: ans.append([i,j,min(inps[i],inps[j])]) ...