Rosetta Problems

如何に汝を満足せしめむ? いざ数え上げむ…

https://hoj.hamako-ths.ed.jp/onlinejudge/problems/134