Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class InsideTheBuilding
- {
- static void Main()
- {
- int h = int.Parse(Console.ReadLine());
- for (int i = 0; i < 5; i++)
- {
- int x = int.Parse(Console.ReadLine());
- int y = int.Parse(Console.ReadLine());
- Console.WriteLine(((x <= 3 * h && x >= 0) && (y >= 0 && y <= h)) || (y > h && y <= 4 * h) && (x >= h && x <= 2 * h) ? "inside" : "outside");
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement