Gem Factory
CodeChefOpen on judge ↗
Gem factory consist of machines ,that cook gems and place them on the conveyor belt,Gems are numbered and collected by robot at other end of belt . Robots collect gems and pack them in a packet using decorated order(increasing order). Experience taught them to use a side belt in order to bring the gems in specific order. Therefore, a robot is installed in the middle of the conveyor that manages
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