Advertisement
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 Thea_The_Photographer
- {
- class Program
- {
- static void Main(string[] args)
- {
- var picturesCount = int.Parse(Console.ReadLine());
- var filterTime = int.Parse(Console.ReadLine());
- var filterPercentage = int.Parse(Console.ReadLine());
- var upoadTime = int.Parse(Console.ReadLine());
- var totalFilterTime = picturesCount * filterTime;
- var goodPictures = (int)(Math.Ceiling(picturesCount * ((double)filterPercentage / 100)));
- var uploadSeconds = goodPictures * upoadTime;
- var totalSeconds = totalFilterTime + uploadSeconds;
- var totalTime = new TimeSpan(0, 0, totalSeconds);
- Console.WriteLine(totalTime.ToString(@"d\:hh\:mm\:ss"));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement