aboutsummaryrefslogtreecommitdiff
path: root/codechef/twoDishes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'codechef/twoDishes.cpp')
-rw-r--r--codechef/twoDishes.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/codechef/twoDishes.cpp b/codechef/twoDishes.cpp
new file mode 100644
index 0000000..2ed48f5
--- /dev/null
+++ b/codechef/twoDishes.cpp
@@ -0,0 +1,15 @@
+#include<bits/stdc++.h>
+
+using namespace std;
+
+int main () {
+ ios_base::sync_with_stdio(false);
+ cin.tie(NULL);
+ int tt;
+ cin >> tt;
+ while(tt--){
+ int n, fr, v, fi;
+ cin >> n >> fr >> v >> fi;
+ cout << (fr + fi >= n && v >= n ? "YES" : "NO") << '\n';
+ }
+}