Advertisement
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 HelloCSharp
- {
- class Program
- {
- static void Main(string[] args)
- {
- int bricks = int.Parse(Console.ReadLine());
- int workers = int.Parse(Console.ReadLine());
- int cartVolume = int.Parse(Console.ReadLine());
- double totalBricksPerCourse = workers * cartVolume;
- double totalBricksFromAllCourses = bricks / totalBricksPerCourse;
- Console.WriteLine(Math.Ceiling(totalBricksFromAllCourses));
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement