0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-11-08 17:58:48 +00:00

A - Food for Animals

https://codeforces.com/contest/1675/submission/155937556
This commit is contained in:
Baoshuo Ren 2022-05-05 22:45:11 +08:00
parent c0d6499c75
commit ff26a578b1
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

23
Codeforces/1675/A/A.cpp Normal file
View File

@ -0,0 +1,23 @@
#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;
}