Rosetta Problems

求1和2的个数

https://www.acwing.com/problem/content/3399