Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- using System.Numerics;
- namespace SinoTheWalker
- {
- class MainClass
- {
- public static void Main(string[] args)
- {
- string leaveTime = Console.ReadLine();
- DateTime leave = DateTime.ParseExact(leaveTime, "HH:mm:ss", CultureInfo.InvariantCulture);
- decimal steps = decimal.Parse(Console.ReadLine());
- decimal timePerStep = decimal.Parse(Console.ReadLine());
- BigInteger seconds = ((BigInteger)(steps * timePerStep))%86400;
- leave = leave.AddSeconds((int)seconds);
- Console.WriteLine($"Time Arrival: {leave:HH:mm:ss}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement