← All problemsSign in

G A B STRS

Problem description On the eve of EKATHRA-2K18 all the classes in GVP were gifted with strings consisting of 1's and 0's. But since CSE students of GVP are awesome as always, they have a special privilege to reject a string offered to them, if they do not like it. The students do not like a string if it contains 010 as a substring of the given string. But since the offered string is too long for

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