#C10653. Drone Reachability Check
Drone Reachability Check
Drone Reachability Check
Drone Reachability Check
You are given two points A and B in a 2D plane with coordinates \( (x_1, y_1) \) and \( (x_2, y_2) \) respectively. A drone positioned at point A can only move in three ways: move right (increase \( x \)), move up (increase \( y \)), or remain stationary. It cannot move left or down.
The task is to determine if the drone can reach point B from point A using only these allowed moves. This is possible if and only if \( x_2 \ge x_1 \) and \( y_2 \ge y_1 \).
inputFormat
The input consists of four space-separated integers: ( x_1 ), ( y_1 ), ( x_2 ), and ( y_2 ), representing the coordinates of the starting point A and the target point B respectively.
outputFormat
Output a single line containing the string "Yes" if the drone can reach point B from point A under the allowed moves. Otherwise, output "No".## sample
0 0 3 3
Yes
</p>