Advertisement
Guest User

19. Thea The Photographer

a guest
Jun 2nd, 2017
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. using System;
  2. class Program
  3. {
  4. static void Main()
  5. {
  6. double allpics = double.Parse(Console.ReadLine());
  7. double filterTime = double.Parse(Console.ReadLine());
  8. double goodPics = double.Parse(Console.ReadLine());
  9. goodPics = Math.Ceiling((allpics * goodPics) / 100.0);
  10. double uploadTime = double.Parse(Console.ReadLine());
  11.  
  12. double all = (allpics * filterTime) + (goodPics * uploadTime);
  13. TimeSpan newTime = TimeSpan.FromSeconds((ulong)all);
  14.  
  15. Console.WriteLine("{0:d1}:{1:d2}:{2:d2}:{3:d2}",newTime.Days,newTime.Hours,newTime.Minutes,newTime.Seconds);
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement