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());
- long totalBricksPerCourse = workers*cartVolume;
- long totalBricksFromAllCourses=0;
- int courses = 0;
- while (totalBricksFromAllCourses<bricks)
- {
- courses++;
- totalBricksFromAllCourses += totalBricksPerCourse;
- }
- Console.WriteLine(courses);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement