奖金
Tag:
Background
Recently, the research results of RP Studio have been acknowledged by all. In order to reward the staff, Wang decided to give the studio members bonuses that were n years in arrears. However, the amount of bonus that each person receives is different, and wise Wang will pay the bonus according to the profits that members bring to the studio. But if this person does not make any profits, he or she will be expelled.
近日,\(RP\)工作室的研究成果得到了众人的肯定。为了奖励各工作人员,\(Wang\)决定向工作室成员发放拖欠\(n\)年的奖金。但是每个人拿到的奖金数量是不同的,明智的\(Wang\)会根据成员为工作室带来的利润从而发放奖金。但是如果此人没有创造任何利润,那他(她)将会被开除。
Description
Wang's bonus is based on profit. When the profit (I) is less than or equal to 100,000 yuan, the bonus can be increased by 10%; If the profit is higher than 100,000 yuan and lower than 200,000 yuan, the part lower than 100,000 yuan will be deducted by 10%, while the part higher than 100,000 yuan will be deducted by 7.5%. If it is between 200,000 and 400,000 yuan, the part above 200,000 yuan can be deducted 5%; If the amount is higher than 400,000 yuan between 400,000 and 600,000 yuan, 3% will be deducted. Between 600,000 and 1 million yuan, the portion above 600,000 yuan can be deducted 1.5%, while the portion above 1 million yuan can be deducted 1%. If profit (I) is zero, expel is output. Enter the profit I for the current month from the keyboard and ask for the total amount of bonus payable?
\(Wang\)发放的奖金根据利润提成。
利润(\(i\))低于或等于10万元时,奖金可提10%;
利润高于10万元,低于20万元时,低于10万元的部分按10%提成,高于10万元的部分,可提成7.5%;
20万到40万之间时,高于20万元的部分,可提成5%;
40万到60万之间时高于40万元的部分,可提成3%;
60万到100万之间时,高于60万元的部分,可提成1.5%,高于100万元时,超过100万元的部分按1%提成。
如果利润(\(i\))为零,则输出\(expel\)。
从键盘输入当月利润i,求应发放奖金总数?
Input
A long integer representing the profits created by the studio members.
一个长整数,表示该工作室成员所创造的利润。
Output
An integer that represents the bonus earned by the studio members.
一个整数,表示该工作室成员所获得的奖金。
Input
150000
Output
13750
Limitation
\(i>=0;\)
Prompt
The number axis can be used to demarcate and locate. Pay attention to the definition of bonus when defining the growth integer.
可以利用数轴来分界,定位。注意定义时需把奖金定义成长整型。