Identifying Well-Matched Competitors from Exam Scores

Given \(N\) students (\(N \le 1000\)), each student has a name (a string of at most 8 characters with no spaces) and three integer scores for Chinese, Mathematics, and English (each between 0 and 150). Two students are considered "well-matched competitors" if the absolute difference in each subject score is at most 5, and the absolute ...

Posted on Wed, 21 Oct 2026 16:36:42 +0000 by abselect