Secret Machine Mania
The Chef has been hunting for a machine developed to change numbers in a rather peculiar manner. This machine has a fixed number $c$ associated with it and a changing number $X$. In a single step, the Chef can do the following: - First, choose any positive integer $b$ that is a perfect $c$-th power of some number (that is, there is some positive integer $n$ such that $b = n^c$) - Then, change $X
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