HDOJ 4626 2013 Multi-University Training Contest 3 Problem F Jinkeloid