Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- hours, minutes, seconds = list(map(int, input().split(':')))
- steps = int(input())
- step_per_second = int(input())
- start_seconds = hours * 3600 + minutes * 60 + seconds
- final_seconds = steps * step_per_second
- total_seconds = start_seconds + final_seconds
- print(f'Time Arrival: {total_seconds // 3600 % 24:02}:{total_seconds % 3600 // 60:02}:{total_seconds % 60:02}')
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement