ГлавнаяСборникиТурнирыРазделыФорумыУчастникиПечатьПомощьО системе

Турниры > Lab11 - SWE > задача:


14-03-50. 50469 - Letter Grades

Lab11 - SWE

Старт: 12.дек.2023 в 00:16:04
Финиш: 22.дек.2023 в 23:16:04
Турнир завершён!
• Турнирная таблица

Гость
• Вопросы к жюри (2)

Задачи турнира

• 50428 - Three Times
• 50396 - Cinema Tickets - 1
• 50433 - Sum of Cubes
• 50435 - City Electric Bills
• 50440 - Call Center
• 50462 - Class Average (3 Grades)
• 13-Fall2-30. 50397 - The Number of...
• 14-03-50. 50469 - Letter Grades
• 15-SprPr2-50. 50508 - The Biggest ...
• 2. 50459 - The Biggest Digit

Обратная связь

Если у вас есть предложения или пожелания по работе Contester, посетите форум сайта www.contester.ru.

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
Question by Ibrahim Mesecan.

Letter Grades

The University converts grades into Letter grades. And, at the end of every semester, they keep report of each course. They count the number of students receiving each grade for every course.

Question: The grades are converted into letter grades using the conversion table on the right. Write a program that is going to read n student grades. And then, it will count the number of students receiving each grade.

Input specification
You will be given an integer number (n) at the beginning where 1 ≤ n ≤ 100. Then in the following line, you will be given n integers which are between 0 and 100.

Output specification
Show each letter grade followed by the number of students receiving that grade. Show the letter grades in increasing order starting from A.

 Sample Input   
  7
  62 29 85 71 64 94 67
 Sample Output   
  A 1
  B 1
  C 1
  D 3
  E 0
  F 1

Explanation: Here is the list of grades for each letter:
  A: 94
  B: 85
  C: 71
  D: 62, 64, 67
  E: No grade
  F: 29


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

www.contester.ru