|Submit||All submissions||Best solutions||Back to list|
NINJA4 - HELP SHELDON
Dr. Sheldon Cooper builds a MVPD replication of himself which he calls a "Mobile Virtual Presence Device" (MVPD) that would go through all the hazards of life that he would otherwise have to
experience while he stays behind in a "secure, undisclosed location". Now the MVPD is initially standing at the origin of the Cartesian coordinate system, (0, 0). (More like Sheldon's spot (0, 0, 0, 0)). Then
the MVPD makes N turns:-
On the fifth turn, the MVPD goes units to the right.
And so on.
Given an integer N, find the position of Sheldon's MVPD so that he won't get lost somewhere.
1 <= T <= 100.
1 <= N <= 10 ^ 9.
|Cluster:||Cube (Intel G860)|
|Languages:||C CSHARP C++ 4.3.2 CPP CPP14 CPP14-CLANG C99 JAVA PYTHON PYPY PYTHON3|