bacco

Задача: учебна зала; Training Lab

Feb 1st, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | None | 0 0
  1. using System;
  2.  
  3. namespace tESt
  4. {
  5.     class Program
  6.     {
  7.         static void Main(string[] args)
  8.  
  9.         {
  10.             var i = double.Parse(Console.ReadLine()); //  дължина в метри.
  11.             var w = double.Parse(Console.ReadLine()); //  широчина в метри.
  12.  
  13.             var afterCoridorW = w - 1;
  14.  
  15.             var colons = afterCoridorW / 0.70;
  16.             var rools = i / 1.20;
  17.  
  18.             var loses = 3;   //  входната врата 1 място, а заради катедрата 2.
  19.  
  20.             colons = Math.Round(colons);
  21.             rools = Math.Round(rools);
  22.  
  23.             var totalPlaces = colons * rools;
  24.             var finalPlaces = totalPlaces - loses;
  25.  
  26.             Console.WriteLine(finalPlaces);
  27.         }
  28.     }
  29. }
Advertisement
Add Comment
Please, Sign In to add comment