I’m working on a c programming question and need support to help me study.
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 totalnumber of assignments in the collection, and m is the number of assignments you mustoutput. The next n lines each contain two integers separated by a space, representing theidentifier and difficulty level of an assignment. Both the identifier and difficulty level areunique.Output: m lines, each containing an assignment of top difficulty levels – the identifier anddifficulty level of the assignment. The assignments should be sorted by difficulty level, fromhighest to lowest.