#K78587. Diving Rating
Diving Rating
Diving Rating
Charles is participating in a diving competition where his performance is evaluated based on two scores: a technical score (T) and an artistic score (A), each ranging from 0 to 100. The overall rating is determined by the sum of these scores using the following criteria:
$$\text{rating} = \begin{cases} \text{Excellent} & \text{if } T+A > 160,\\ \text{Good} & \text{if } 120 \le T+A \le 160,\\ \text{Needs Improvement} & \text{if } T+A < 120. \end{cases} $$Your task is to write a program that reads the technical and artistic scores from standard input and prints out the corresponding rating to standard output.
inputFormat
The input consists of two integers T and A (0 ≤ T, A ≤ 100) separated by space or newline. These represent the technical and artistic scores, respectively.
outputFormat
Output a single line containing the rating as a string: either Excellent
, Good
, or Needs Improvement
.
90 80
Excellent
</p>