logo AlgoBeat OnlineJudge
登录 注册

#208422. [CCC 2023 J1] Deliv-e-droid

内存限制:512 MiB 时间限制:3000 ms 标准输入输出
题目类型:VJudge(洛谷) 评测方式:VJudge
上传者: 匿名

题目描述

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.

输入格式

The input will consist of two lines. The first line will contain a non-negative integer ,representing the number of packages delivered. The second line will contain a non-negative integer ,representing the number of collisions with obstacles.

输出格式

The output will consist of a single integer ,representing the final score.

样例

样例输入 1

5
2

样例输出 1

730

样例输入 2

0
10

样例输出 2

-100