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 Training_Lab
- {
- class Program
- {
- static void Main(string[] args)
- {
- var h = double.Parse(Console.ReadLine());
- var w = double.Parse(Console.ReadLine());
- var row = Math.Floor(h/1.2) ;
- var column = Math.Floor((w - 1) / 0.7);
- Console.WriteLine(column*row-3);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment