Editorial for CCC '22 J2 - Fergusonball Ratings


Remember to use this editorial only when stuck, and not to copy-paste code from it. Please be respectful to the problem author and editorialist.
Submitting an official solution before solving the problem yourself is a bannable offence.

Loops and if statements are required for this problem. A clean approach is to loop N times and read two lines of input per loop. This allows you to process one player at a time. A calculation can be performed to determine the player's star rating, and we can also maintain a count of the number of players with a star rating greater than 40. Care may be needed to produce only one line of output exactly as specified.


Comments

There are no comments at the moment.