Canadian Computing Competition: 2023 Stage 1, Junior #1
In the game, Deliv-e-droid, a robot droid has to deliver packages while avoiding obstacles. At the end of the game, the final score is calculated based on the following point system:
- Gain
points for every package delivered. - Lose
points for every collision with an obstacle. - Earn a bonus
points if the number of packages delivered is greater than the number of collisions with obstacles.
Your job is to determine the final score at the end of a game.
Input Specification
The input will consist of two lines. The first line will contain a non-negative integer
Output Specification
The output will consist of a single integer
Sample Input 1
5
2
Sample Output 1
730
Explanation for Sample 1
There are
Sample Input 2
0
10
Sample Output 2
-100
Explanation for Sample 2
There are
Comments
why cheese
i love parmesan cheese
???
This comment is hidden due to too much negative feedback. Show it anyway.
Same here brother
Whatever you say, man.
wha
Cheese! 🧀🧀🧀