Advertisement
simonradev

SchoolRoom

May 12th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.83 KB | None | 0 0
  1. namespace _1000DaysAfterBirth
  2. {
  3.     using System;
  4.     using System.Collections.Generic;
  5.     using System.Globalization;
  6.     using System.Linq;
  7.     using System.Text;
  8.     using System.Threading.Tasks;
  9.    
  10.     public class Program
  11.     {
  12.         public static void Main()
  13.         {
  14.             double lenghtInMeters = double.Parse(Console.ReadLine());
  15.             double widthInMeters = double.Parse(Console.ReadLine()) - 1;
  16.  
  17.             double lenghtInCantimeters = lenghtInMeters * 100;
  18.             double rowsInRoom = Math.Floor(lenghtInCantimeters / 120.0);
  19.  
  20.             double widthInCantimeters = widthInMeters * 100;
  21.             double workingPlacesOnRow = Math.Floor(widthInCantimeters / 70.0);
  22.  
  23.             double result = rowsInRoom * workingPlacesOnRow - 3;
  24.  
  25.             Console.WriteLine(result);
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement