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 Firm
- {
- class Program
- {
- static void Main(string[] args)
- {
- var hours = int.Parse(Console.ReadLine());
- var days = double.Parse(Console.ReadLine());
- var workers = int.Parse(Console.ReadLine());
- var time = (days*0.9*8);
- var adWorker = workers * (days * 2);
- var projectTime = Math.Floor(time + adWorker);
- if (projectTime >= hours)
- {
- Console.WriteLine("Yes!{0} hours left.", projectTime-hours);
- }
- else
- {
- Console.WriteLine("Not enough time!{0} hours needed.", hours-projectTime);
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment