Alice and Bob
CodeChefOpen on judge ↗
Alice and Bob are participating in a thread and beads competition. Luckily both Alice and Bob reached the finals of the tournament. Each participant will be given a bucket filled with unlimited colored beads. Alice gets a bucket with red-colored beads while Bob gets a bucket with blue colored beads. Initially, they will be provided with a common empty thread. The person who puts the Most number
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