iPhone binary indexed tree

0と1、和算を木で、ピコピコと。という感じでiPhoneアプリのサンプルコードを描いてみます。