Question: Write a program which reads the statistics of n League A football teams and prints the team's name which fall in League B . A
Write a program which reads the statistics of n League A football teams and prints the team's name
which fall in League B A team falls in League B if it has less than k points after having played m weeks
where m is between and Each team gets three points for a win, one point for a draw and zero
points when lost.
Input Specification: In the first line, you will be given the number of teams n and the points
k needed to stay in league A Then in the following n lines, there will be the
team name and its results. Semicolon indicates the end of the input series.
Number represents win, number one represents draw and number zero represents loss.
Output Specification: Show the team names and their points which fall to League B If no team falls to
League B then shows Teams" message.
Sample Input : Sample Input :
TeamA ; Team ;
TeamB ; Team ;
TeamC ; Team ;
TeamD ; Team ;
Sample Output : Sample Output :
TeamA Teams
TeamB
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
