出處:https://onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=3238
使用binary indexed tree(Fenwick tree),加速計算區間值的總和。