← All problemsSign in

Akash and Function

CodeChefRating 1121Open on judge ↗

Akash has his maths test tomorrow. He secretly found out one of the questions from the test. As the test is online, he wants to write a code that solves the question. However, he is not good at coding and thus, wants Chef to help him with that. Chef is given a function $F(X)$ such that the condition: - $F(X) = F(2\cdot X)$ holds true for all $X$, where $X$ is a **positive integer**. For a give

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start