#K45582. Calculate Bonus Points
Calculate Bonus Points
Calculate Bonus Points
You are given a game with N rounds. In each round, a player earns a certain number of fixed points and a total score. The bonus points for a round is defined as:
\( Bonus_i = Total_i - Fixed_i \)
It is guaranteed that \( Bonus_i \) is a non-negative even integer for every round. Your task is to compute the bonus points for each round given the fixed points and total scores.
inputFormat
The input is read from standard input (stdin) and has the following format:
- The first line contains an integer \( N \) representing the number of rounds.
- The second line contains \( N \) space-separated integers representing the fixed points for each round.
- The third line contains \( N \) space-separated integers representing the total scores for each round.
outputFormat
Print a single line to standard output (stdout) containing \( N \) space-separated integers. Each integer represents the bonus points for the corresponding round.
## sample3
10 20 30
14 26 40
4 6 10