版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/polanwind/article/details/87915386
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
#include <vector>
using namespace std;
int x, y, z;
int a, b, c;
int main() {
scanf("%d %d %d", &x, &y, &z);
scanf("%d %d %d", &a, &b, &c);
a -= x;
if (a < 0) {
printf("NO\n");
}
else {
int s = a + b;
s -= y;
if (s < 0) {
printf("NO\n");
}
else {
int w = s + c;
w -= z;
if (w < 0) {
printf("NO\n");
}
else {
printf("YES\n");
}
}
}
//system("pause");
return 0;
}