Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Globalization;
- using System.Linq;
- namespace _01._Sino_The_Walker
- {
- class Program
- {
- static void Main(string[] args)
- {
- // Programming Fundamentals Retake Exam - 6 January 2017
- DateTime date = DateTime.ParseExact(Console.ReadLine(), "HH:mm:ss", CultureInfo.InvariantCulture);
- long steps = long.Parse(Console.ReadLine()) % 86400;
- long seconds = long.Parse(Console.ReadLine()) % 86400;
- long timeSeconds = steps * seconds;
- date = date.AddSeconds(timeSeconds);
- Console.WriteLine($"Time Arrival: {date.Hour:d2}:{date.Minute:d2}:{date.Second:d2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement