-->
当前位置:首页 > 题库

PROGRAMMING:Chief editor pays salary

Luz5年前 (2021-05-10)题库473
$$lfq $$is an editor in chief of a magazine, but his hidden identity is the president of the magazine. Today, it's the end of the month, and as the editor in chief, $$lfq $$has to pay everyone. But when $$lfq $$started a magazine
It is stipulated that each person's salary is related to the time of joining the society and the number of articles published in the current month. Specifically, the basic salary for those who have joined the society for less than 5 years is $1000, and those who have joined the society for less than 5 years are $5-9$$
The basic salary for years is $1500 $$, $2000 $$for years of $$10 $$and above. Each article is $$200 $$yuan, so the staff salary is $$= $$basic salary $$+ $$article number $$* 200 $$. But now he's sorry to make it
Because he has to calculate the salary of every employee every month, he is very distressed. Can you help him?
###Input format:
In the first line, two integers, $$n $, denote the number of employees
Next, $$n $$line, two integers in each line, $$a / B $, respectively indicate the employee's joining time and the number of articles published.
$$tips$$ :$$1<=n<=10$$, $$0<=a<=20$$, $$1<=b<=20$$
###Output format:
Output a total of $$n $$lines, each line represents the salary that should be paid at the end of the month of the ith employee
###Input example:
Here is a set of inputs. For example:
```in
one
5 10
```
###Output example:
The corresponding output is given here. For example:
```out
three thousand and five hundred
```







answer:If there is no answer, please comment