atcoder#AGC051B. [AGC051B] Bowling
[AGC051B] Bowling
Score : points
Problem Statement
There are some number of bowling pins on a plane. Four people are observing the pins from different angles. Is it possible that one of the observers sees much more pins than the others?
Let's model the pins as a set of points on an -plane. The image below shows the positions of the four observers. Formally,
- For observer A, two pins overlap if their -coordinates are the same.
- For observer B, two pins overlap if their values of (-coordinate minus -coordinate) are the same.
- For observer C, two pins overlap if their -coordinates are the same.
- For observer D, two pins overlap if their values of (-coordinate plus -coordinate) are the same.
Let be the number of pins the observers A, B, C, D see, respectively.
Construct any arrangement of bowling pins that satisfies the following constraints:
- The number of pins is between and , inclusive.
- The coordinates are integers between and , inclusive.
- No two pins are placed at exactly the same place.
Input
There is no input.
Output
Print the answer in the following format, where is the number of pins and are the coordinates of the -th pin:
It must satisfy the conditions in the statement.
9
1 1
1 5
2 7
4 4
5 3
6 8
7 5
8 2
8 7
This sample output is provided for the sake of showing the output format and is not correct.
It matches the picture in the statement.
Here, and . Nice try, but not enough to get AC.