ADDNDIVIDE
CodeChefOpen on judge ↗
You have two positive integers $a$ and $b$. You can perform two kinds of operations: - $a = [a/b]$ (replace a with the integer part of the division between a and b) - $b = b+1$ (increase b by 1) Find the minimum number of operations required to make $a$ = 0. ###Input: -The first line contains a single integer $t$-the number of test cases. -The only line of the description of eac
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