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

PROGRAMMING:Judges scoring

Luz5年前 (2021-05-10)题库379
There will be a quiz in the class! All the students took part in it enthusiastically. It was 10 students who entered the final. With the presentation of a series of questions, sometimes the No.1 player scored, sometimes the No.5 player scored, and each time the right person got 10 points, what was the final result?
###Input format:
The first line has ten integers, representing the initial score of ten students. The second line is an integer n, which means that there are n problems in the competition.
Next, there are n lines, each line has a number x, and X represents the serial number of the player who can add points this time (10 points for each correct answer).
###Output format:
The final score of 10 students, there is a space between each two students.
###Input example:
```in
10 0 0 0 10 10 0 0 0 10
three
one
ten
one
```
###Output example:
```out
30 0 0 0 10 10 0 0 0 20
```







answer:If there is no answer, please comment