import datetime time_str_list=[] while(True): tmp=input() if not tmp: break time_str_list.append(tmp) # time_list=[datetime.datetime.strptime(t,"%Y-%m-%d %H:%M:%S")for t in time_str_list] time_list.sort() sum=0 for i in range(len(time_str_list)>>1): seconds=time_list[2*i+1]-time_list[2*i] # print(seconds) # print("++++++++++++") # print(seconds.total_seconds()) sum+=seconds.total_seconds() print(f'{sum:.0f}')
# 创建dp方程 arr = list([0] * 5 for _ in range(5)) op_ = [0]*11 ans=0