Greedy Pirates - Submission

Submit your solution for the task: «Greedy Pirates».

Please submit your solution as PDF (preferred), Postscript, OpenOffice document, Word document or as a (reasonably sized) scanned image. If you have a source in a separate file, please submit it in an archive together with the documentation.