mirror of
https://github.com/tiennm99/codeforces.git
synced 2026-10-14 14:17:20 +00:00
[Init] Solved solutions
This commit is contained in:
1 parent
51f667ac81
commit
20542601dd
131 files changed
+4148
No files matched your search
+26
@@ -0,0 +1,26 @@
|
||||
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");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user