Constraints too Large !
CodeChefOpen on judge ↗
You are given a cubic equation $x^3 + x^2 + x+ k = v$. For every test case you will be given values of $k$ and $v$. In each test case determine the value of $x$. It is guaranteed that x exists and is always an Integer. You may note here that $x,k,v$ are always non-negative numbers, and under these conditions cubic equations have exactly $one$ real root. ###Input: - First line
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