AlexJC

Bricks

Aug 27th, 2016
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 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.  
  7. namespace Bricks
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int bricks = int.Parse(Console.ReadLine());
  14. int workers = int.Parse(Console.ReadLine());
  15. double volume = double.Parse(Console.ReadLine());
  16. var res = Math.Ceiling(bricks / (workers * volume));
  17. Console.WriteLine(res);
  18. }
  19. }
  20. }
Advertisement
Add Comment
Please, Sign In to add comment