Google France has organized a challenge, Hash Code 2015. We participated and this is our best submission.
For qualification:
$ ./data_center.rb < dc.in > dc.out
For test:
$ ./pizza.rb < test_round.in > test_round.out
For final:
$ ./loon.rb < final_round.in > final_round.out