← All problemsSign in

Ciel and password cracking

CodeChefRating 3285Open on judge ↗

Chef Ciel now faces a crisis situation. It is a really complicated situation, please read carefully. Here, your task is to calculate the minimum expected time for slipping out of the crisis situation. As you know, Ciel uses a safe having Box and Ball System as the combination of the safe (See NOTE 1). And, of course, Ciel now knows that the number of the valid combinations for the safe is real

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start