here are the answers of the problems in ACM.