HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Sections > Arithmetic > problem:


50363 - Class GPA Average

Guest
• Discussion of problem (1)

Section problems

• 50314 - Falling Distance
• 50316 - Population Bar Chart
• 50530 - Sum of Ratios
• 50384 - Permutations revisited
• 50368 - Right-most non zero digit in N!
• 50293 - Sum of odd numbers from ...
• 50365 - Sum of the numbers from a...
• 50388 - Number of Armstrong Num...
• 50363 - Class GPA Average
• 50390 - Total Salary Paid
• 50392 - How much space
• 50394 - Water Bills
• 50651 - Largest power of two
• 50297 - Divisible By Five
• 50332 - Variance of a series
• 50398 - Sum of kth Anti-diagonal
• 50400 - nth Row rth Element of a Table

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 2000/4000/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.
Prepared by Ibrahim Mesecan. Difficulty Beta

Class GPA Average

Write a program that is going to read letter grades of students from the course and then it will show the the Grade Point Average of the course.

Input specification
You will be given the an integer number (n) where 0 ≤ n ≤ 8000
Then, in the following n lines you will be given letter grades.

Output specification
Show GPA of the course with 2 decimal places after the floating point.

Sample Input I
  5
  DD
  BA
  AA
  AA
  FF
Sample Input II
  8
  CB
  DD
  FF
  FF
  FF
  BB
  DC
  AA
Sample Output I
  2.5
Sample Output II
  1.5


Для отправки решений необходимо выполнить вход.

www.contester.ru