#t547. 学生优秀判定

学生优秀判定

Determining Excellent Students

Problem Description

There are NN students. For each student we need to record, using a struct, the following information: student ID, academic score, and extracurricular score, plus a comprehensive score (a real number). For each line of input you read a student's ID, academic score, and extracurricular score, and compute the comprehensive score (weighted sum with 70%70\% and 30%30\% respectively), storing it in the struct. The struct should also define a member function that returns the sum of the academic score and the extracurricular score for that student object.

Then you need to write a function that takes a student struct object and determines whether the student is "excellent". A student is excellent if the sum of the academic and extracurricular scores is greater than 140140, and the comprehensive score is no less than 8080.

Of course this problem is easy; it only serves to help you practice using structs.

This problem has a precision issue: convert the comparison of a×0.7+b×0.3a \times 0.7 + b \times 0.3 with 8080 into the comparison of a×7+b×3a \times 7 + b \times 3 with 800800.

Input Format

The first line contains an integer NN.

The next NN lines each contain 3 integers, representing the student ID, academic score, and extracurricular score in order.

Output Format

Output NN lines. If the ii-th student is excellent, output Excellent; otherwise output Not excellent.

Sample Input

4
1223 95 59
1224 50 7
1473 32 45
1556 86 99

Sample Output

Excellent
Not excellent
Not excellent
Excellent

Sample Explanation

There are 44 students in the first sample.

  • Student 1: ID 1223, academic 95, extracurricular 59. Sum = 95+59=154>14095 + 59 = 154 > 140; comprehensive score = $95 \times 0.7 + 59 \times 0.3 = 66.5 + 17.7 = 84.2 \ge 80$, so output Excellent.
  • Student 2: ID 1224, academic 50, extracurricular 7. Sum = 50+7=57≤14050 + 7 = 57 \le 140, so output Not excellent.
  • Student 3: ID 1473, academic 32, extracurricular 45. Sum = 32+45=77≤14032 + 45 = 77 \le 140, so output Not excellent.
  • Student 4: ID 1556, academic 86, extracurricular 99. Sum = 86+99=185>14086 + 99 = 185 > 140; comprehensive score = $86 \times 0.7 + 99 \times 0.3 = 60.2 + 29.7 = 89.9 \ge 80$, so output Excellent.

Finally output 44 lines in input order: Excellent, Not excellent, Not excellent, Excellent.

Constraints

It is guaranteed that 1≤N≤10001 \le N \le 1000, the student ID is a positive integer not exceeding 100000100000, and the academic and extracurricular scores are integers in the range 0∼1000 \sim 100.