ExpediaOA #3
Bot Reach Coordinates
估计困难可在线判题
考点(AI 标注)位运算
From (x,y) you can only move to (x+y,y) or (x,x+y). Determine whether the target can be reached from the start.
输入格式
A single line with four positive integers sx sy tx ty, the start and target coordinates; this site adds 1≤sx,sy,tx,ty≤1000000000.
输出格式
Output Yes if the target is reachable, otherwise output No.
样例 1
输入:
1 1 3 5
输出:
Yes
样例 2
输入:
2 1 1 2
输出:
No
样例 3
输入:
1 1 2 2
输出:
No