You are given a list of scores for multiple students, represented as items, where items[i]=[IDi,scorei] indicates the ID of a student (IDi) and their score (scorei). Your task is to compute the top five average scores for each student.
Return the result as an array of pairs, result, where result[j]=[IDj,topFiveAveragej] represents the student with ID, IDj, and their corresponding top five average scores. The result should be sorted in ascending order by IDj.
Note: To calculate the top five averages for each student, sum their highest five scores and perform integer division by 5.
Constraints:
1<= items.length <=1000
items[i].length ==2
1<=IDi<=1000
0<=scorei<=100
For each IDi, there will be at least five scores.