Editorial for DMOPC '19 Contest 5 P0 - Concurrent Competitor Counting
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.
Submitting an official solution before solving the problem yourself is a bannable offence.
Author:
For each of the participants, read their name and store it in a temporary variable. Next, read their score, and print the appropriate result accordingly using the stored name.
Pseudocode:
read N, cutoff
do N times
read name, score
if score > cutoff print name " will advance"
else print name " will not advance"
Time complexity:
Comments