logo AlgoBeat OnlineJudge
登录 注册

#212200. [NWRRC2024] Another Brick in the Wall

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

题目描述

Alice likes building toy walls. She has a lot of bricks and a limited supply of bricks. Both types of bricks have a height of 1 and can not be rotated.

Alice is going to build a one unit thick wall of length and height out of these bricks. A wall is if there are no seams directly above another seam.

Help Alice determine the minimum number of bricks required to build a solid wall of length and height .

输入格式

The only line contains two integers and , denoting the length and the height of the wall (; ).

输出格式

Print the minimum number of bricks required to build a solid wall.

It can be shown that it is always possible to build a solid wall of length and height .

样例

样例输入 1

7 4

样例输出 1

4