@M1saki
2017-08-13T22:08:52.000000Z
字数 500
阅读 1029
acm
2017年8月
codeforces
组队训练
struct Point
{
int x, y;
} a1, a2, b1, b2;
int main()
{
scanf("%d%d%d%d", &a1.x, &a1.y, &a2.x, &a2.y);
scanf("%d%d%d%d", &b1.x, &b1.y, &b2.x, &b2.y);
int w, h;
scanf("%d%d", &w, &h);
if (a2.x - a1.x >= w && b1.y - a1.y >= h) return 0 * printf("Yes\n");
if (a2.x - a1.x >= w && a2.y - b2.y >= h) return 0 * printf("Yes\n");
if (b1.x - a1.x >= w && a2.y - a1.y >= h) return 0 * printf("Yes\n");
if (a2.x - b2.x >= w && a2.y - a1.y >= h) return 0 * printf("Yes\n");
printf("No\n");
return 0;
}