mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-06-09 12:14:23 +00:00
27 lines
593 B
C#
27 lines
593 B
C#
using System;
|
|
using System.Linq;
|
|
|
|
namespace problem_572A
|
|
{
|
|
class problem_572A
|
|
{
|
|
public static void Main(string[] args)
|
|
{
|
|
int[] ip1 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
|
|
int[] ip2 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
|
|
int[] ip3 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
|
|
int[] ip4 = Array.ConvertAll(Console.ReadLine().Split(), int.Parse);
|
|
Array.Sort(ip3);
|
|
Array.Sort(ip4);
|
|
if (ip3[ip2[0] - 1] < ip4[ip1[1] - ip2[1]])
|
|
{
|
|
Console.Write("YES");
|
|
}
|
|
else
|
|
{
|
|
Console.Write("NO");
|
|
}
|
|
}
|
|
}
|
|
}
|