Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace problem19TheaThePhotographer
- {
- class Problem19TheaThePhotographer
- {
- static void Main()
- {
- long pictures = long.Parse(Console.ReadLine());
- long timeForFilter = long.Parse(Console.ReadLine());
- long percentGodPictures = long.Parse(Console.ReadLine());
- long timeForUpload = long.Parse(Console.ReadLine());
- long filterTime = pictures * timeForFilter;
- long godPictures = (long)Math.Ceiling(pictures * (percentGodPictures / 100.0));
- long timeUplouding = godPictures * timeForUpload;
- long totaltime = filterTime + timeUplouding;
- TimeSpan time = TimeSpan.FromSeconds(totaltime);
- string result = time.ToString(@"d\:hh\:mm\:ss");
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement