solve POJ/1703
participate ABC/012