Saitama and Function of Function
CodeChefOpen on judge ↗
Saitama had been given a function $y(x) = x^2 - x$ for homework and that day they were taught a new function $f()$ in class. This function $f(n)$ for an input $n$ is count of numbers in $\{1, 2, 3, … , n\}$ that are relatively prime to $n$. Given the value of $x$, help him find out the value of $f(y(x))$ . ### Input - The first line of the input contains a single integer $T$ denoting the number o
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.
Sign in to chat with the tutor and save your progress.
Sign in to start