Advertisement
Spocoman

01. Sino The Walker

Feb 9th, 2024
894
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.37 KB | None | 0 0
  1. hours, minutes, seconds = list(map(int, input().split(':')))
  2. steps = int(input())
  3. step_per_second = int(input())
  4.  
  5. start_seconds = hours * 3600 + minutes * 60 + seconds
  6. final_seconds = steps * step_per_second
  7. total_seconds = start_seconds + final_seconds
  8.  
  9. 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