Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace _19.Thea_The_Photographer
- {
- using System;
- public class TheaThePhotographer
- {
- public static void Main()
- {
- int amountOfThePictures = int.Parse(Console.ReadLine());
- int timeToFilterPerPicture = int.Parse(Console.ReadLine());
- double filterFactorInPersent = int.Parse(Console.ReadLine()) / 100;
- int uploadTimePerPicture = int.Parse(Console.ReadLine());
- long totalUsefullPictures = (long)Math.Ceiling(amountOfThePictures * percent);
- long totalFilteringTime = amountOfThePictures * timeToFilterPerPicture;
- long totalUploadTime = totalUsefullPictures * uploadTimePerPicture;
- long totalReadyTime = totalUploadTime + totalFilteringTime;
- long days = totalReadyTime / (24 * 60 * 60);
- long rest = totalReadyTime % (24 * 60 * 60);
- long hours = rest / (60 * 60);
- rest = rest % (60 * 60);
- long minutes = rest / 60;
- long seconds = rest % 60;
- Console.WriteLine($"{days}:{hours:00}:{minutes:00}:{seconds:00}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement