#5178. Manhattan Multifocal Ellipse
0
Manhattan Multifocal Ellipse
Manhattan Multifocal Ellipse
题目描述
You are given points on a two-dimensional plane, and a non-negative integer . Find the number of integer pairs such that $\displaystyle \sum_{i=1}^N (|x-x_i|+|y-y_i|) \leq D$.
输入格式
The input is given from Standard Input in the following format:
输出格式
Print the answer.
2 3
0 0
1 0
8
2 0
0 0
2 0
0
6 100
9 -6
10 -1
2 10
-1 7
-7 5
-1 -4
419
提示
for .
All input values are integers.The following figure visualizes the input and the answer for Sample . The blue points represent the input. The blue and red points, eight in total, satisfy the condition in the statement.

标签: AtCoder|abc366E
来源
AtCoder|abc366E