一个用于计算我遇到此语句的总和的函数 ..plz 帮助
int get_sum(int x) { int p = 0, k; for (k = x; k > 0; k -= k & -k) p += bit[k]; return p; }
c loops
c ×1
loops ×1