google-hashcode-2015

  1. All the possible ultimate slices respecting all the constraints (dimensions and minimun number of ham cells) are computed;
  2. Obtained slices are sorted by a descending order based on their area;
  3. Slices are added one by one in such an order checking that they do not overlap;
  4. Slices are added until (i) no more suitable slices can be added or, eventually, (ii) if the entire pizza area has been covered.

Best score: 8954 out of 10.800, with 719 slices.