University of Amsterdam Wk 2 C Programming Computer Coding Task
Better see the pdf below.
here only post the first question.
Input: The first line contains the integers n and m, separated by a space. n is the total
number of assignments in the collection, and m is the number of assignments you must
output. The next n lines each contain two integers separated by a space, representing the
identifier and difficulty level of an assignment. Both the identifier and difficulty level are
unique.
Output: m lines, each containing an assignment of top difficulty levels – the identifier and
difficulty level of the assignment. The assignments should be sorted by difficulty level, from
highest to lowest.