Okupljanje
의견: 0
The day after a giant party everybody wants to know a couple of things — who was at the party and how many people were there? Since parties are usually pretty big, nobody actually knows the correct number of people who were there. Your friend Krešo was at a party last Saturday and he knows how many people there were per \(1\ \text{m}^2\).
While reading \(5\) newspaper articles about that party, you have written down \(5\) numbers, specifying how many people were present at the party according to each of the articles. You believe Krešo's information and you'd like to know how much each of the articles was wrong.
The first line of input contains two positive integers, \(Lj\) (\(1 \le Lj \le 10\)), the number of people per \(\text{m}^2\), and \(P\) (\(1 \le P \le 1000\)), the area of the room the party was held in.
The second line of input contains \(5\) positive integers less than \(10^6\), the number of people present at the party according to each of the articles.
The first and only line of output must contain \(5\) numbers, the difference between the number of people written in an article and Krešo's (correct) number \(Lj \cdot P\).
| 서브태스크 | 점수 | 설명 |
|---|---|---|
Test 1 | 20점 | None |
Test 2 | 20점 | None |
Test 3 | 20점 | None |
Test 4 | 20점 | None |
Test 5 | 20점 | None |
1 10
10 10 10 10 100 0 0 0 05 20
99 101 1000 0 97-1 1 900 -100 -3평가 및 의견
Okupljanje
Log in to rate problems.
아직 의견이 없습니다. 자격이 된다면 위 양식에서 가장 먼저 평가해 보세요.
풀이 제출
Okupljanje