The painted over sections 2#296

The painted over sections 2

0,1 секунд
64 мегабайт
Орташа

On a sheet with a grid of cells of size millimeters, a circle with radius millimeters is drawn. All cells that intersect with the circle are painted. All other cells, including those that only touch the circle, are left unpainted. The center of the circle is always placed at the intersection of grid lines. Determine the number of painted cells.

Кіріс деректері

A single line contains two integers and (M, R \leq 40000), separated by a space.

Шығыс деректері

Output the number of painted cells.

Мысалдар

Мысал 1

Loading
Loading