Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- string[] result = new string[5];
- int n = int.Parse(Console.ReadLine());
- for (int i = 0; i < 5; i++)
- {
- bool inside = false;
- double x = double.Parse(Console.ReadLine());
- double y = double.Parse(Console.ReadLine());
- if ((x >= 0) && (x <= 3 * n) && (y >= 0) && (y <= n))
- {
- inside = true;
- }
- else if ((x >= n) && (x <= 2 * n) && (y >= n) && (y <= 4 * n))
- {
- inside = true;
- }
- result[i] = inside ? "inside" : "outside";
- }
- foreach (string res in result)
- {
- Console.WriteLine(res);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement