[Solution] Alice and Marks CodeChef Solution
Problem
Alice has scored marks in her test and Bob has scored 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.
Input Format
- The first and only line of input contains two space-separated integers — the marks of Alice and Bob respectively.
Output Format
For each testcase, print Yes
if Alice is happy and No
if she is not, according to the problem statement.
The judge is case insensitive so you may output the answer in any case. In particular YES
, yes
, yEsare all considered equivalent to
Yes`.
Explanation:
Alice has scored marks whereas Bob has scored mark. As Alice has scored twice as much as Bob (i.e. ), the answer is Yes
.
👇👇👇👇👇
Explanation:
Alice has scored mark whereas Bob has scored marks. As Alice has not scored twice as much as Bob (i.e. ), the answer is No
.
No comments:
Post a Comment