Solutions for online judge and competition problems