#1027
Unrated
OKUPLJANJE
시간 제한
1s
메모리 제한
32MB
제출
0
정답
0
맞힌 사람
0
정답 비율
0.0%

문제

Author: Marko Ivanković

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 on a party last Saturday and he knows how many people there were per 1 m2. 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 ≤ Lj ≤ 10), the number of people per m2, and P (1 ≤ P ≤ 1000), the area of the room the party was held in. The second line of input contains 5 positive integers less than 106, 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.

예제 입력 1

1 10
10 10 10 10 10

예제 출력 1

0 0 0 0 0

예제 입력 2

5 20
99 101 1000 0 97

예제 출력 2

-1 1 900 -100 -3
코드 제출

코드를 제출하려면 로그인이 필요합니다.

로그인
내 제출
제출 내역이 없습니다.
맞은 사람
아직 맞은 사람이 없습니다.
난이도 투표
Unrated0명 투표
로그인 후 AC 받으면 투표할 수 있습니다.
전체 제출
제출 내역이 없습니다.