MALD Contest 1 P2 - Scratch Cat and Examinations
View as PDF
During the semester, the Scratch Cat took  examinations. The 
 examination was out of 
 marks, and the Scratch Cat scored 
 marks.
The Scratch Cat's marks are above the regular expectations; however, his parents are very strict and judge his scores based on the following table. (Note the presence of the ceiling function.)
 denotes the ceiling function on 
, which rounds it up to the nearest integer.
Let  be the percentage score of the 
 exam:
| Grade in % | Output | 
|---|---|
sus | |
average | |
below average | |
can't eat dinner | |
don't come home | |
find a new home | 
Constraints
Subtask 1 [20%]
Subtask 2 [30%]
Subtask 3 [50%]
No additional constraints.
Input Specification
The first line will contain an integer , the number of examinations.
The next  lines will contain two space-separated integers 
 and 
, the Scratch Cat's score and the total score for the 
 examination.
Output Specification
Output  lines, with the 
 line containing the corresponding output for the Scratch Cat's 
 examination using his parents' grading system.
Sample Input
6
101 100
99 99
69419 69420
979 1000
933 999
0 1
Sample Output
sus
average
average
below average
don't come home
find a new home
Comments