Rosetta Problems

Picking flowers

https://marisaoj.com/problem/659