#P8841. [传智杯 #4 初赛] 竞争得分
[传智杯 #4 初赛] 竞争得分
Problem Description
To encourage everyone to write better assignments, the Group Theory Lab at Hualishu University of Science and Technology (HUST) uses a competitive scoring method.
Specifically, suppose people submitted their assignments. Let the person with the lowest raw score be , and the person with the highest raw score be . The raw score of person is , then the score of person is:
Due to issues with the grading system, the final recorded scores can only be integers, and the decimal part is removed directly.
Input Format
The first line contains an integer representing the number of people. ()
The second line contains integers forming the sequence , where is the raw assignment score of the -th person. ()
Output Format
One line containing integers, representing each person’s score after the update.
3
1 2 3
0 50 100
Hint
Translated by ChatGPT 5