97일차 - Can Santa save Christmas?

--------------------------------------------🤞 My Solution -----------------------------------------

def determine_time(arr):
    total_h = 0
    total_m = 0
    for i in range(0, len(arr)):
        arr[i] = arr[i].split(':')
        total_h += int(arr[i][0])
        total_m += int(arr[i][1]) / 60
        total_h += total_m
    if total_h > 24:
        return False
    else:
        return True

좋은 웹페이지 즐겨찾기