P6488 [COCI 2010/2011 #6] OKUPLJANJE
Description
After a huge party ends, five newspapers publish the number of people who attended the party, but the numbers in these newspapers may be wrong.
Now you know that the total area of the venue is $L$ square meters, and on average there are $p$ people per square meter. Please compute, for each of the five newspapers, the difference between the published number of attendees and the actual number of attendees.
Input Format
The first line contains two integers, representing the venue area $L$ and the average number of people per square meter $p$.
The second line contains five integers $a_1 \dots a_5$, representing the numbers published by the five newspapers.
Output Format
Output one line with five integers, in order, representing the difference between each newspaper’s published number and the actual number.
Explanation/Hint
#### Constraints
For all test cases, it is guaranteed that $1 \leq L, p \leq 10^9$ and $0 \leq a_i \leq 10^{18}$.
#### Notes
**This problem is translated from [COCI2010-2011](https://hsin.hr/coci/archive/2010_2011/) [CONTEST #6](https://hsin.hr/coci/archive/2010_2011/contest6_tasks.pdf) *T1 OKUPLJANJE***. Translation by @[一扶苏一](https://www.luogu.com.cn/user/65363), with Constraints slightly modified.
Translated by ChatGPT 5