Codeforces Round #531 (Div. 3) D. Balanced Ternary String (思维)
You are given a string s consisting of exactly n characters, and each character is either ‘0’, ‘1’ or ‘2’. Such strings are called ternary strings.Your task is to replace minimum number of characters...