Manage your Energy solutions

Manage your Energy was solved using PHP by 4 contestants. Solution sizes: average 1706 bytes (shortest: 1539; longest: 2075).