Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Numerics;
- namespace _17.DifferentIntegersSize
- {
- class DifferentIntegersSize
- {
- static void Main()
- {
- int totalPic = int.Parse(Console.ReadLine());
- int filterTime = int.Parse(Console.ReadLine());
- double precent = double.Parse(Console.ReadLine());
- int uploadTime = int.Parse(Console.ReadLine());
- double makepercent = precent / 100.0;
- int GoodPictures = (int)Math.Ceiling(totalPic * makepercent);
- long goodPictureUpload = GoodPictures * (long)uploadTime;
- long allPictureFilter = totalPic * (long)filterTime;
- long TotalTimeToComplete = goodPictureUpload + allPictureFilter;
- TimeSpan result = TimeSpan.FromSeconds(TotalTimeToComplete);
- string fromTimeString = result.ToString(@"d\:hh\:mm\:ss");
- Console.WriteLine(fromTimeString);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement