#C938. Point Calculation Based on Completion Time

    ID: 53466 Type: Default 1000ms 256MiB

Point Calculation Based on Completion Time

Point Calculation Based on Completion Time

You are given a list of integers representing the time (in minutes) each player takes to complete a level. Your task is to compute the points earned by each player based on the following scoring rules:

  • $$T \le 5$$: 100 points
  • $$6 \le T \le 10$$: 80 points
  • $$11 \le T \le 20$$: 50 points
  • $$T > 20$$: 20 points

Output the points in the same order as the input times.

inputFormat

The first line contains an integer n, denoting the number of players. The second line contains n space-separated integers representing the completion times.

outputFormat

Print n space-separated integers representing the points earned by each player, in the same order as provided in the input.## sample

4
5 12 19 21
100 50 50 20