You are given two sequences 𝑎1,𝑎2,…,𝑎𝑛 and 𝑏1,𝑏2,…,𝑏𝑛. Each element of both sequences is either 0, 1 or 2. The number of elements 0, 1, 2 in the sequence 𝑎 is 𝑥1, 𝑦1, 𝑧1 respectively, and
链接:https://www.nowcoder.com/acm/contest/142/A 来源:牛客网 A ternary string is a sequence of digits, where each digit is either 0, 1, or 2. Chiaki has a ternary string s which can self-reproduce. Every sec