Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace _19_TheaThePhotographer
- {
- class TheaThePhotographer
- {
- static void Main(string[] args)
- {
- ulong pictures = ulong.Parse(Console.ReadLine());
- ulong filterTime = ulong.Parse(Console.ReadLine());
- ulong filteredPercentage = ulong.Parse(Console.ReadLine());
- ulong uploadTime = ulong.Parse(Console.ReadLine());
- ulong totalTime = pictures * filterTime + (ulong)Math.Ceiling(filteredPercentage * pictures / 100.0) * uploadTime;
- TimeSpan time = TimeSpan.FromSeconds(totalTime);
- Console.WriteLine(time.ToString(@"d\:hh\:mm\:ss"));
- }
- }
- }
Add Comment
Please, Sign In to add comment