[传智杯 #4 初赛] 竞争得分

Luogu
IDLGP8841
Time1000ms
Memory128MB
DifficultyP1
模拟传智杯
为了鼓励大家写出更好的作业,花栗鼠科技大学(Hualishu University of Science and Technology, HUST)的组原实验采用了竞争得分的方式。 具体来说,假设有 $n$ 个人提交了作业,并且其中原始得分最低的人记作 $a_{\min}$ ,原始得分最高的人记作 $a_{\max}$,第 $i$ 个人的原始得分为 $a_i$,那么第 $i$ 个人的得分就是: $$100 \times \frac{a_i-a_{\min}}{a_{\max}-a_{\min}}$$ 由于成绩系统的问题,最终录入的成绩只能是整数,**采用直接去掉小数部分的方法**。 ## Input 第一行一个整数 $n$ 表示人数。($1 \leq n \leq 1000$) 第二行共 $n$ 个整数,为序列 $a$ ,其中 $a_i$ 表示第 $i$ 个人的原始作业得分。($1 \leq a_i \leq 1000$) ## Output 一行,共 $n$ 个整数,表示经过更新后每个人的得分。 [samples]
Samples
Input #1
3
1 2 3
Output #1
0 50 100
API Response (JSON)
{
  "problem": {
    "name": "[传智杯 #4 初赛] 竞争得分",
    "description": {
      "content": "为了鼓励大家写出更好的作业,花栗鼠科技大学(Hualishu University of Science and Technology, HUST)的组原实验采用了竞争得分的方式。 具体来说,假设有 $n$ 个人提交了作业,并且其中原始得分最低的人记作 $a_{\\min}$ ,原始得分最高的人记作 $a_{\\max}$,第 $i$ 个人的原始得分为 $a_i$,那么第 $i$ 个人的得分就是: ",
      "description_type": "Markdown"
    },
    "platform": "Luogu",
    "limit": {
      "time_limit": 1000,
      "memory_limit": 131072
    },
    "difficulty": {
      "LuoguStyle": "P1"
    },
    "is_remote": true,
    "is_sync": true,
    "sync_url": null,
    "sign": "LGP8841"
  },
  "statements": [
    {
      "statement_type": "Markdown",
      "content": "为了鼓励大家写出更好的作业,花栗鼠科技大学(Hualishu University of Science and Technology, HUST)的组原实验采用了竞争得分的方式。\n\n具体来说,假设有 $n$ 个人提交了作业,并且其中原始得分最低的人记作 $a_{\\min}$ ,原始得分最高的人记作 $a_{\\max}$,第 $i$ 个人的原始得分为 $a_i$,那么第 $i$ 个人的得分就是:\n...",
      "is_translate": false,
      "language": "English"
    }
  ]
}
Full JSON Raw Segments