SHOW:
|
|
- or go back to the newest paste.
1 | using System; | |
2 | ||
3 | namespace _19.Thea_The_Photographer | |
4 | { | |
5 | class Program | |
6 | { | |
7 | static void Main(string[] args) | |
8 | { | |
9 | int countPictures = int.Parse(Console.ReadLine()); | |
10 | int filterTimeForOnePicture = int.Parse(Console.ReadLine()); | |
11 | int filterFactor = int.Parse(Console.ReadLine()); | |
12 | int uploadTime = int.Parse(Console.ReadLine()); | |
13 | ||
14 | double filterPicture = Math.Ceiling(countPictures * (filterFactor / 100.0)); | |
15 | double firstAnswer = (double)countPictures * filterTimeForOnePicture; | |
16 | double secondAnswer =(double) filterPicture * uploadTime; | |
17 | double answer = (double)(firstAnswer + secondAnswer); | |
18 | ||
19 | TimeSpan time = TimeSpan.FromSeconds(answer); | |
20 | string str = time.ToString(@"d\:hh\:mm\:ss"); | |
21 | Console.WriteLine(str); | |
22 | ||
23 | } | |
24 | } | |
25 | } |