code_jam only solve problem B