PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
n,p = [int(i) for i in input().split()]
node = p+n//2 if p<n/2 else p-n//2
print(node,"is opposite to",p)
"""
Challenge ::: Circle Dot
Description :-
Assume there is a circle with n(even number) of points with marking from 0 to n-1 with equal distance. So each point have a point opposite to it.
Task :-
To make a code which takes a input n and input pointr(a point on circle marked).
You have to find the point which is opposite to pointr.
Example:-
Input :- 10, 7
Output :- 7 is opposite to 2;
"""
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run