Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace _1000DaysAfterBirth
- {
- using System;
- using System.Collections.Generic;
- using System.Globalization;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- public class Program
- {
- public static void Main()
- {
- double lenghtInMeters = double.Parse(Console.ReadLine());
- double widthInMeters = double.Parse(Console.ReadLine()) - 1;
- double lenghtInCantimeters = lenghtInMeters * 100;
- double rowsInRoom = Math.Floor(lenghtInCantimeters / 120.0);
- double widthInCantimeters = widthInMeters * 100;
- double workingPlacesOnRow = Math.Floor(widthInCantimeters / 70.0);
- double result = rowsInRoom * workingPlacesOnRow - 3;
- Console.WriteLine(result);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement