mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-05 14:58:48 +00:00
24 lines
393 B
C++
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;
|
||
|
}
|