Solutions for Pekin Online Judge problems