Объяснение:
class Program
{
static void Main(string[] args)
{
int a = int.Parse(Console.ReadLine());
int b = int.Parse(Console.ReadLine());
int x = int.Parse(Console.ReadLine());
int y = int.Parse(Console.ReadLine());
int z = int.Parse(Console.ReadLine());
if (x <= a && y <= b || y <= a && x <= b ||
x <= a && z <= b || z <= a && x <= b ||
z <= a && y <= b || y <= a && z <= b)
Console.WriteLine("Пройдет");
else
Console.WriteLine("Не пройдет");
Console.ReadKey();
}
}
#include <iostream>
signed main()
{
double a, b, x;
std::cin >> a >> b;
x = (a + b - 3.0) / 2.0;
std::cout << x;
return 0;
}