C2 - Successor (Slightly Harder Version)
CodeChefOpen on judge ↗
_The problem statement in this and the 'Easy' version is exactly the same. The only difference is in the constraints._ sibasish\_14 is going to retire from problemsetting for IIIT-Bh's Competitive Coding Club$(C^3)$ after Fastest Code First 2.0. So, now it's upto pritishn to choose a replacement for him. The viable options are niket\_301 and cryptobrat. However, cryptobrat is busy making project
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