#include <iostream>
int main () {
double x, y;
std::cin >> x >> y;
std::cout << ((x >= 2 && y >= 0) || (x >= 1 && y <= -1) ? "Yes" : "No") << std::endl;// д
std::cout << ((x >= 2) && (y >= 1 || y <= -1.5) ? "Yes" : "No") << std::endl;// е
std::cout << (x >= 1 && x <= 3 && y <= -1 && y >= -2 ? "Yes" : "No") << std::endl;// ж
std::cout << ((y >= 0.5 && y <= 1.5) || x >= 2 ? "Yes" : "No") << std::endl;// з
}
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
#include <iostream>
int main () {
double x, y;
std::cin >> x >> y;
std::cout << ((x >= 2 && y >= 0) || (x >= 1 && y <= -1) ? "Yes" : "No") << std::endl;// д
std::cout << ((x >= 2) && (y >= 1 || y <= -1.5) ? "Yes" : "No") << std::endl;// е
std::cout << (x >= 1 && x <= 3 && y <= -1 && y >= -2 ? "Yes" : "No") << std::endl;// ж
std::cout << ((y >= 0.5 && y <= 1.5) || x >= 2 ? "Yes" : "No") << std::endl;// з
}