01204212/homework/top scores

จาก Theory Wiki
ไปยังการนำทาง ไปยังการค้นหา
This is part of 01204212

You want to maintain a table of teams with top 10 scores in a world-wide game competition. You will get M updates. After every K updates, you want to print out a table of teams with top 10 scores. If there are ties, you should show teams with smaller IDs first.

Input/output

Examples

Some code