Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace p_02
- {
- class Program
- {
- static void Main(string[] args)
- {
- int allPicturesTaken = int.Parse(Console.ReadLine());
- int filterPictures = int.Parse(Console.ReadLine());
- int filterFactor = int.Parse(Console.ReadLine());
- int uploadTime = int.Parse(Console.ReadLine());
- long usefulPictures = (long)Math.Ceiling(allPicturesTaken * (filterFactor / 100.0));
- long filterTime = (long)allPicturesTaken * filterPictures;
- long alltime = filterTime + (usefulPictures * uploadTime);
- TimeSpan time = TimeSpan.FromSeconds(alltime);
- Console.WriteLine($"{time.Days:D1}:{time.Hours:D2}:{time.Minutes:D2}:{time.Seconds:D2}");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement