Cutting Cheese

From programming_contest
Jump to navigation Jump to search
  1. Calculate total weight of cheese
  2. divide to get slice weight
  3. binary search the cheese from the previous cut to find the next cut
    • Requires being able to calculate sphere sections...which is just integrating circle area across the part of the circle you want