Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Linq;
- using System.Numerics;
- using System.Collections;
- using System.Collections.Generic;
- namespace SinoTheWalker
- {
- class Program
- {
- static void Main(string[] args)
- {
- var timee = Console.ReadLine().Split(':').Select(int.Parse).ToList();
- int steps = int.Parse(Console.ReadLine());
- int stepPerSeconds = int.Parse(Console.ReadLine());
- BigInteger totalSeconds = timee[0] * 3600 + timee[1] * 60 + timee[2] + steps * stepPerSeconds;
- Console.WriteLine($"Time Arrival: {totalSeconds / 3600 % 24:D2}:{totalSeconds % 3600 / 60:D2}:{totalSeconds % 60:D2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement