Electricity Cutoff
CodeChefOpen on judge ↗
Background During the Electricity cutoff in United States this winter (caused by low leves of the hydro dams), a scheme was developed to turn off the Electricity to areas of the country in a particular sequence, totally fair, manner. The country was divided into N regions (LA was region number 1, and NYC number 13). A number ,k, would be picked `at random', and the Electricity would first be turn
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