#K58317. Department Performance Evaluation

    ID: 30616 Type: Default 1000ms 256MiB

Department Performance Evaluation

Department Performance Evaluation

You are given a number of reviews from a department. Each review contains three integer ratings (each between 0 and 10) measuring:

  • Work Quality
  • Teamwork
  • Deadline Adherence

The overall performance score is calculated as a weighted average of the average ratings for each metric. The formula is given in LaTeX as follows:

$$ S = 0.5 \times Q + 0.3 \times T + 0.2 \times D $$

where:

  • Q is the average work quality,
  • T is the average teamwork, and
  • D is the average deadline adherence.

Based on the computed score S:

  • If S \ge 8, output "Outstanding Performance".
  • If 6 \le S < 8, output "Meeting Expectations".
  • If S < 6, output "Needs Improvement".

Your task is to write a program which reads the input from standard input (stdin) and writes the result to standard output (stdout).

inputFormat

The first line contains an integer n, the number of reviews. Each of the following n lines contains three space-separated integers representing work_quality, teamwork, and deadline_adherence respectively.

outputFormat

Output exactly one line which is one of the following strings based on the computed composite score: "Outstanding Performance", "Meeting Expectations", or "Needs Improvement".## sample

3
7 6 5
9 8 7
6 7 6
Meeting Expectations