grach

2016_March_6 Training Lab

Nov 12th, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.53 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Training_Lab
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             var h = double.Parse(Console.ReadLine());
  14.             var w = double.Parse(Console.ReadLine());
  15.            
  16.             var row = Math.Floor(h/1.2) ;
  17.             var column = Math.Floor((w - 1) / 0.7);
  18.          
  19.             Console.WriteLine(column*row-3);            
  20.  
  21.         }
  22.     }
  23. }
Advertisement
Add Comment
Please, Sign In to add comment