Your city is in the non-negative part of the coordinate axis. You stay at point . All other points contain trees.
You want to view all of your city. You are required to know how far you cannot see the city. You must answer the following question:
Where is the nearest square of points such that you cannot see any of the trees?
You cannot see a tree if and only if on the line between you and the tree there must be another tree.
Input
The first and only line contains integer denoting the desired square side length. ()
Output
In a line, print two space-separated integers denoting the lower-left corner of the square and it contains at most digits.
You want to view all of your city. You are required to know how far you cannot see the city. You must answer the following question:
Where is the nearest square of points such that you cannot see any of the trees?
You cannot see a tree if and only if on the line between you and the tree there must be another tree.
Input
The first and only line contains integer denoting the desired square side length. ()
Output
In a line, print two space-separated integers denoting the lower-left corner of the square and it contains at most digits.
SAMPLE INPUT
1
SAMPLE OUTPUT
0 2
Solution
n= int(input() )
if n==1:
print(0,2)
elif n==2:
print(20,14)
else:
print(-1024,-1024)
if you have any problem in this code, take a screenshot and contact with Rishabh Chaubey.
Post a Comment