Base-ic Task
CodeChefOpen on judge ↗
Take a number “abc” and say it is in base $x$. Mathematically, $abc$ in decimal is = cx0 + bx1 + ax2 i.e., ax2 + bx + c In hexadecimal system, A-F represent 10-15. Here, we go a little further and make use till Z i.e., A-Z corresponds to 10-35. Now, you are given a number $S$. Say the max digit represented in it is $B$, then it implies that it can be represented only from base $B+1$ onwards. Fur
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