Need Help!!
https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2397
11402 — Ahoy, Pirates!
My solution:https://paste.ubuntu.com/25055353/