UFPE Newcomers Finals 2013

http://vjudge.net/contest/view.action?cid=51293
http://tideline.logdown.com/posts/211595-ufpe-newcomers-finals-2013