Vedansh accepts Challenge
Practice
0 (0 votes)
Basic programming
Medium
Math
Problem
92% Success 555 Attempts 30 Points 0.2s Time Limit 256MB Memory 1024 KB Max Code
Vedansh has a friend Noel.they always used to roam together . but Noel always used to stuck Vedansh . One day Noel Challenged Vedansh to solve the Mystery Question , but since Vedansh is poor in mathematics , help him to find the solution .
INPUT :
first line of input contains a number N .
OUTPUT:
Find the Mystery and output correct answer in new line.
CONSTRAINTS :
1<=N<=10^50
Hints :
Input : 1
Output : 1
Input : 2
Output : 3
Input : 3
Output : 0
Input : 4
Output : 4
Input : 8
Output : 8
Explanation
There is Mystery in Question . go for mathematical logics (Gates);
Code Editor
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output
Submissions
Please login to view your submissions
Similar Problems
Points:30
Tags:
HiringOpenHiringOpenImplementationHiringMathematicsEasyBasic ProgrammingMathematicsMathematicsMathamatics
Points:30
4 votes
Tags:
C++MathSortingBasic Math
Points:30
Tags:
Medium
Editorial
Login to unlock the editorial
Please login to use the editor
You need to be logged in to access the code editor
Loading...
Please wait while we load the editor
Results
Custom Input
Run your code to see the output