mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-30 15:56:27 +00:00
A - Food for Animals
https://codeforces.com/contest/1675/submission/155937556
This commit is contained in:
parent
c0d6499c75
commit
ff26a578b1
23
Codeforces/1675/A/A.cpp
Normal file
23
Codeforces/1675/A/A.cpp
Normal 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;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user