Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _19.Thea_The_Photographer
- {
- class Program
- {
- static void Main(string[] args)
- {
- int countPictures = int.Parse(Console.ReadLine());
- int filterTimeForOnePicture = int.Parse(Console.ReadLine());
- int filterFactor = int.Parse(Console.ReadLine());
- int uploadTime = int.Parse(Console.ReadLine());
- double filterPicture = Math.Ceiling(countPictures * (filterFactor / 100.0));
- double firstAnswer = (double)countPictures * filterTimeForOnePicture;
- double secondAnswer =(double) filterPicture * uploadTime;
- double answer = (double)(firstAnswer + secondAnswer);
- TimeSpan time = TimeSpan.FromSeconds(answer);
- string str = time.ToString(@"d\:hh\:mm\:ss");
- Console.WriteLine(str);
- }
- }
- }
Add Comment
Please, Sign In to add comment