← All problemsSign in

Rebuilding Byteland

CodeChefRating 2622Open on judge ↗

Byteland is in the midst of a political crisis. The city is in almost a state of civil war among the two factions, "Coders", who rule the city - and "non-Coders" who believe they have been oppressed far too long. Chef - Byteland's President - has decided to restructure Byteland residences such that Coders and non-Coders are forced to meet everyday! Byteland is a society of N houses - labeled 1 to

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