using System; using System.Collections.Generic; using System.IO; class Solution { static void Main(String[] args) { string qs = Console.ReadLine(); int q = Convert.ToInt32(qs); bool yes = true; for (int qi=0; qi x_max) x_max = x; if (y > y_max) y_max = y; if (x < x_min) x_min = x; if (y < y_min) y_min = y; arr[0,ni] = x; arr[1,ni] = y; } yes = true; /* if (x_max == x_min || y_max == y_min) { yes = false; if (x_max - x_min == y_max - y_min) { yes = false; } else {*/ for (int ni=0; ni x_min && arr[0,ni] < x_max) && (arr[1,ni] > y_min && arr[1,ni] < y_max)) { yes = false; break; } } //} if (yes) Console.WriteLine("YES"); else Console.WriteLine("NO"); } } }