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 TheaThePhotographer
- {
- class Program
- {
- static void Main(string[] args)
- {
- double pictureNumb = double.Parse(Console.ReadLine());
- double filterTime = double.Parse(Console.ReadLine());
- double goodPic = double.Parse(Console.ReadLine());
- double uploadTIme = double.Parse(Console.ReadLine());
- TimeSpan totalTime = TimeSpan.FromSeconds((Math.Ceiling(pictureNumb * (goodPic / 100)) * uploadTIme) + (pictureNumb * filterTime));
- string answer = string.Format("{0}:{1:d2}:{2:d2}:{3:d2}",
- totalTime.Days,
- totalTime.Hours,
- totalTime.Minutes,
- totalTime.Seconds);
- Console.WriteLine(answer);
- }
- }
- }
Add Comment
Please, Sign In to add comment