You are worker in power management in a company with a power problem, your job was to manage what room has power and what is not, as each room has random priority every minute, and make sure every room can finish their job or you will get fired.