Advertisement
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 ChangeTiles
- {
- class Program
- {
- static void Main(string[] args)
- {
- var squareN = int.Parse(Console.ReadLine());
- var squareArea = squareN * squareN;
- var tilesW = double.Parse(Console.ReadLine());
- var tilesL = double.Parse(Console.ReadLine());
- var tilesArea = tilesL * tilesW;
- var benchL = int.Parse(Console.ReadLine());
- var benchW = int.Parse(Console.ReadLine());
- var benchArea = benchL * benchW;
- var timeForOneTile = 0.2;
- Console.WriteLine((squareArea-benchArea)/tilesArea);
- Console.WriteLine((squareArea - benchArea) / tilesArea*timeForOneTile);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement