Advertisement
braveheart1989

bricks

Mar 4th, 2016
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using System.Globalization;
  7.  
  8. class Program
  9. {
  10.     static void Main(string[] args)
  11.     {
  12.         var bricks = double.Parse(Console.ReadLine());
  13.         var workers = double.Parse(Console.ReadLine());
  14.         var bricksPerWOrker = double.Parse(Console.ReadLine());
  15.  
  16.         var bricksPerCourse = workers * bricksPerWOrker;
  17.  
  18.         var coursesCount = Math.Ceiling(bricks / bricksPerCourse);
  19.         Console.WriteLine(coursesCount);
  20.  
  21.     }
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement