diff options
Diffstat (limited to 'codechef/MakeMultiple')
| -rwxr-xr-x | codechef/MakeMultiple/main | bin | 0 -> 22648 bytes | |||
| -rw-r--r-- | codechef/MakeMultiple/main.cpp | 15 | ||||
| -rw-r--r-- | codechef/MakeMultiple/main_input0.txt | 4 | ||||
| -rw-r--r-- | codechef/MakeMultiple/main_output0.txt | 3 |
4 files changed, 22 insertions, 0 deletions
diff --git a/codechef/MakeMultiple/main b/codechef/MakeMultiple/main Binary files differnew file mode 100755 index 0000000..06c7ecf --- /dev/null +++ b/codechef/MakeMultiple/main 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 |
