if __name__ == '__main__': a, b = input().split(":") res = [] for m in range(2, 100): hour, mins = 0, 0 flag1, flag2 = 1, 1 ok1, ok2 = 1, 1 mi = 0 # 次幂 for i in range(len(a)-1, -1, -1): if 57 >= ord(a[i]) >= 48: ...