Official algorithmic problem description and constraints.
Schools of Chefland use the 50−50
50−50 rule to grade their students. As per the rule , students are awarded :
Z grade, if their attendance is strictly less than 50%F grade, if they score strictly less than 50% given that their attendance is greater than or equal to 50%A grade, otherwise.You are given two integers, X andY, denoting the percentage of attendance and percentage of marks obtained by Alice. What grade will Alice get?
For each test case, output on a new line, the grade awarded to Alice.
Note that you may print the grade in lowercase or uppercase.
Detailed video explanations, mathematical intuition, and clean C++ implementation code.