MALD Contest 1 P2 - Scratch Cat and Examinations

View as PDF

Submit solution


Points: 5 (partial)
Time limit: 0.5s
Memory limit: 64M

Author:
Problem types
"Find a new home!" - The Scratch Cat's parents after seeing his 89% on a test

During the semester, the Scratch Cat took T examinations. The ith examination was out of ti marks, and the Scratch Cat scored gi 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.)

x denotes the ceiling function on x, which rounds it up to the nearest integer.

Let ki be the percentage score of the ith exam:

Grade in % Output
ki>100% sus
ki=100% average
98%ki99% below average
95%ki97% can't eat dinner
90%ki94% don't come home
ki<90% find a new home

Constraints

1T104

0gi,ti1015

ti0

Subtask 1 [20%]

0gi,ti100

Subtask 2 [30%]

0gi,ti109

Subtask 3 [50%]

No additional constraints.

Input Specification

The first line will contain an integer T, the number of examinations.

The next T lines will contain two space-separated integers gi and ti, the Scratch Cat's score and the total score for the ith examination.

Output Specification

Output T lines, with the ith line containing the corresponding output for the Scratch Cat's ith examination using his parents' grading system.

Sample Input

Copy
6
101 100
99 99
69419 69420
979 1000
933 999
0 1

Sample Output

Copy
sus
average
average
below average
don't come home
find a new home

Comments

There are no comments at the moment.