From e6943587d08d7df0a21bd57960aec354f41581f8 Mon Sep 17 00:00:00 2001 From: AYUSH GUPTA <98117063+ayush-1123@users.noreply.github.com> Date: Sat, 22 Oct 2022 01:37:29 +0530 Subject: [PATCH] Create AliceNdMarks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Problem: Alice has scored X marks in her test and Bob has scored Y marks in the same test. Alice is happy if she scored at least twice the marks of Bob’s score. Determine whether she is happy or not. --- AliceNdMarks | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 AliceNdMarks diff --git a/AliceNdMarks b/AliceNdMarks new file mode 100644 index 0000000..c64156f --- /dev/null +++ b/AliceNdMarks @@ -0,0 +1,19 @@ +SOLUTION FOR PROBLEM ALICE AND MARKS, PROBLEM CODE - MARKSTW, CODECHEF + +#include +using namespace std; + +int main() +{ + int x, y; + cin >> x >> y; + if (x >= (2 * y)) + { + cout << "Yes"; + } + else + { + cout << "No"; + } + return 0; +}