Integral Points
Time limit3sMemory limit512 MB
Given n, output an integer radius r and n distinct integer points on the circle centered at the origin with radius r.
- Level
Medium4 of 10
- Topics
- Number theory, Math, Implementation, Brute force
- Solved
- No attempts yet
Problem
A set of points is concyclic if all of them lie on the circumference of a single circle. Given an integer , find a circle centered at whose circumference contains at least distinct integral points.
Note: integral points are points whose coordinates are both integers.
Input
The input is a single line containing a positive integer .
Output
Output lines. The first line contains an integer , the radius of the circle. Each of the next lines contains two integers and such that the point lies on the circle.
Constraints
- This problem uses a special checker, so you do not have to output the minimum radius .
- Each token in your output cannot exceed 30 characters.
- Every point in your output must be unique.
- The size of your code must be no greater than 256 kilobytes.