[Solution] Pass the Exam CodeChef Solution | Codechef Solution 2022
Chef appeared for an exam consisting of sections. Each section is worth marks.
Chef scored marks in Section , marks in section , and marks in section .
Chef passes the exam if both of the following conditions satisfy:
- Total score of Chef is ;
- Score of each section .
Determine whether Chef passes the exam or not.
Input Format
- The first line of input will contain a single integer , denoting the number of test cases.
- Each test case consists of a single line containing space-separated numbers - Chef's score in each of the sections.
Output Format
For each test case, output PASS
if Chef passes the exam, FAIL
otherwise.
Pass the Exam CodeChef Solution
Chef and Candies CodeChef Solution
Journey of the Knight CodeChef Solution
Slow Solution CodeChef Solution
Game of Piles Version 1 CodeChef Solution
Find A, B, C CodeChef Solution
Largest Square in the garden CodeChef Solution
Game of Piles Version 2 CodeChef Solution
Note that the output is case-insensitive i.e. PASS
, Pass
, pAsS
, and pass
are all considered same.
No comments:
Post a Comment