Rosetta Problems

Number of pairs

https://marisaoj.com/problem/100