我的做法(python)
查看原帖
我的做法(python)
1649545
greenhats楼主2025/1/20 03:28
hours=[]
for i in range(1,8):
    s,a=map(int,input().split())
    if s+a>8:
        hours.append((i,s+a))
if hours==[]:
    print(0)
else:
    print(max(hours,key=lambda x:x[1])[0])

没写注释

2025/1/20 03:28
加载中...