Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace p_02
- {
- class Program
- {
- static void Main(string[] args)
- {
- ulong totalPic = ulong.Parse(Console.ReadLine());
- ulong filterTime = ulong.Parse(Console.ReadLine());
- ulong filterFactorInPercent = ulong.Parse(Console.ReadLine());
- ulong uploadTime = ulong.Parse(Console.ReadLine());
- ulong usefulPic = (ulong)Math.Ceiling((filterFactorInPercent / 100.0) * totalPic);
- ulong secondsTotalPic = totalPic * filterTime;
- ulong secondsFilterPic = usefulPic * uploadTime;
- ulong totalSec = secondsFilterPic + secondsTotalPic;
- DateTime time = new DateTime();
- time = time.AddSeconds(totalSec);
- Console.WriteLine($"{time.Day - 1:D1}:{time.Hour:D2}:{time.Minute:D2}:{time.Second:D2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement