A cosmetic comprising (A) a polymer having repeating units represented by the following formula (I) and repeating units represented by the following formula (II)