0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-05 12:38:47 +00:00
OI-codes/Codeforces/1675/A/A.cpp

24 lines
393 B
C++

#include <iostream>
using std::cin;
using std::cout;
const char endl = '\n';
int t, x, y, c, a, b;
signed main() {
std::ios::sync_with_stdio(false);
cin >> t;
while (t--) {
cin >> a >> b >> c >> x >> y;
cout << (std::max(0, x - a) + std::max(0, y - b) <= c
? "YES"
: "NO")
<< endl;
}
return 0;
}