HDU 5054 Alice and Bob(數學)
阿新 • • 發佈:2017-05-08
esp contain before mod see min roc axis factor
Bob and Alice with their own definition of the coordinate system respectively, went to the coordinate point (x, y). Can they meet with each other ?
Sample Output
題目鏈接:http://acm.hdu.edu.cn/showproblem.php?pid=5054
Bob and Alice with their own definition of the coordinate system respectively, went to the coordinate point (x, y). Can they meet with each other ?
Note: Bob and Alice before reaching its destination, can not see each other because of some factors (such as buildings, time poor).
10 10 5 5 10 10 6 6
YES NOSource BestCoder Round #11 (Div. 2)
官方題解:
代碼例如以下:
#include <cstdio> int main() { int n, m; int x, y; while(~scanf("%d%d%d%d",&n,&m,&x,&y)) { if(x*2==n && y*2==m) printf("YES\n"); else printf("NO\n"); } return 0; }
HDU 5054 Alice and Bob(數學)