The problem details can be found at LOJ #130. Submissions for this problem are closed. Note: The format differs.
Using your Hydro universal account