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

Разделы > Поиск > задача:


51058 - Third grade students

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

Задачи раздела

• 50862 - Sum of the Pairs
• 50238 - The smallest number
• 51059 - Football teams
• 51058 - Third grade students
• 51060 - Public Transportation
• 50483 - Group Total
• 50331 - Number of Numbers over A...
• Raporti Javor
• 50861 - The largest Student Group
• 50815 - Breaking the Bunker
• 50437 - Age Labeling
• 50500 - Find Student

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

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

Лимит времени 2000/4000/4000/4000 мс. Лимит памяти 65000/65000/65000/65000 Кб.
bfs.

Q5

The third grade student’s advisor wants to know how many students can graduate in the end of the third academic year.

According to the university graduation rules a student can be graduated if he/she has been successful in all courses through pursuing the faculty's academic program and has his/her CGPA to at least 2.00. 

Students have to pass from at least m courses in order to graduate. And thus, NA, FF and FD grades are not count and are not used in the CGPA calculation.

Students, for each course they have taken, are awarded the following grades in letters by the lecturer of the course as the final grade of achievement for that course .

 Letter Grade GPA Value 
 AA  4.00
 BA  3.50
 BB  3.00
 CB  2.50
 CC  2.00
 DC  1.50
 DD  1.00
 FD  0.50
 FF  0.00
 NA  0.00


Input Specification:  
 In the first line you will be given the number of student “0<n<=500” and the number of courses needed to pass “0<m<=100”.

In the next n lines are given Students Name Surname and course  letter grades.  Letter grades are separated by space and the line ends with the semicolon “;”.

Output Specification: Show the name, surname, number of courses passed and the average of students who can graduate, separated by new line.

If no student can gradate show "0 Students" message.

Sample Input I
7 10
Ilir Leka AA AA AA AA AA AA AA AA AA AA ;
Marsed Ibrahimi AA AA AA FF AA AA AA AA AA AA AA ;
Erisa Cela AA AA AA AA AA BB NA AA AA AA ;
Andi Rama CC CC DC CC CB CC DC CC CC CC ;
Xhulia Abazi AA BB BB BA CB BB CB CC BB ;
Endri Kola CC BB DC DD DD DD BB AA BB CC ;
Julian Kraja NA FD FD DD DC DC DC DD DD ;

Sample Input II

7 20
Ilir Leka AA AA AA AA AA AA AA AA AA AA ;
Marsed Ibrahimi AA AA AA FF AA AA AA AA AA AA AA ;
Erisa Cela AA AA AA AA AA BB NA AA AA AA ;
Andi Rama CC CC DC CC CB CC DC CC CC CC ;
Xhulia Abazi AA BB BB BA CB BB CB CC BB ;
Endri Kola CC BB DC DD DD DD BB AA BB CC ;
Julian Kraja DD DD DD DD DD DC DC DC DD DD ;

Sample Output I

Ilir Leka 10 4.00
Marsed Ibrahimi 10 4.00
Endri Kola 10 2.15

Sample Output II

0 Students

 

 

 

Sample Input I Explanation: 

Name Surname: Ilir Leka, Number of courses passed: 10 Average: 4.00.
Name Surname: Marsed Ibrahimi, Number of courses passed: 10 Average: 4.00.
Name Surname: Erisa Cela, Number of courses passed: 9 Average: 3.89.
Name Surname: Andi Rama, Number of courses passed: 10 Average: 1.95.
Name Surname: Xhulia Abazi, Number of courses passed: 9 Average: 2.94.
Name Surname: Endri Kola, Number of courses passed: 10, Average: 2.15.
Name Surname: Julian Kraja, Number of courses passed: 6, Average: 1.15.

Students who have the CGPA greater than or equal to 2.0 and 10 courses passed are:

Ilir Leka 10 4.00
Marsed Ibrahimi 10 4.00
Endri Kola 10 2.15

 

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

www.contester.ru