aboutsummaryrefslogtreecommitdiff
path: root/codechef/MakeMultiple
diff options
context:
space:
mode:
authoromagdy7 <omar.professional8777@gmail.com>2022-11-01 11:51:53 +0200
committeromagdy7 <omar.professional8777@gmail.com>2022-11-01 11:51:53 +0200
commit91ca20b8f78eeeb74fc4eea6eeecdca9fefa5656 (patch)
tree0b8fa3a57f5e442c8134f089e64019aba89c5b19 /codechef/MakeMultiple
parentf2c878488b659cd19ccecc9880e042251585fdbb (diff)
downloadcompetitive-programming-91ca20b8f78eeeb74fc4eea6eeecdca9fefa5656.tar.xz
competitive-programming-91ca20b8f78eeeb74fc4eea6eeecdca9fefa5656.zip
Added new problems
Diffstat (limited to 'codechef/MakeMultiple')
-rwxr-xr-xcodechef/MakeMultiple/mainbin0 -> 22648 bytes
-rw-r--r--codechef/MakeMultiple/main.cpp15
-rw-r--r--codechef/MakeMultiple/main_input0.txt4
-rw-r--r--codechef/MakeMultiple/main_output0.txt3
4 files changed, 22 insertions, 0 deletions
diff --git a/codechef/MakeMultiple/main b/codechef/MakeMultiple/main
new file mode 100755
index 0000000..06c7ecf
--- /dev/null
+++ b/codechef/MakeMultiple/main
Binary files differ
diff --git a/codechef/MakeMultiple/main.cpp b/codechef/MakeMultiple/main.cpp
new file mode 100644
index 0000000..653970c
--- /dev/null
+++ b/codechef/MakeMultiple/main.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 a, b;
+ cin >> a >> b;
+ cout << ((a <= b / 2 || a == b) ? "YES" : "NO") << endl;
+ }
+}
diff --git a/codechef/MakeMultiple/main_input0.txt b/codechef/MakeMultiple/main_input0.txt
new file mode 100644
index 0000000..11784f3
--- /dev/null
+++ b/codechef/MakeMultiple/main_input0.txt
@@ -0,0 +1,4 @@
+3
+3 6
+4 14
+9 10
diff --git a/codechef/MakeMultiple/main_output0.txt b/codechef/MakeMultiple/main_output0.txt
new file mode 100644
index 0000000..5ae1e3d
--- /dev/null
+++ b/codechef/MakeMultiple/main_output0.txt
@@ -0,0 +1,3 @@
+YES
+YES
+NO