Hackable String
CodeChefOpen on judge ↗
At the Royal Mint of Spain, to unlock a locker, Rio has to hack the system. The system consists of binary strings, containing $0$s and $1$s. A hackable string has the pattern $011$ in it. A partial pattern ($0$ and $01$) is allowed at the end of the string. For example, $011011$, $01$, $0110$, $01101101$ are hackable strings and $101$, $000$, $0111$, $011010$ are not hackable strings. Rio ca
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