Update fenwick_tree_2d.cpp

This commit is contained in:
Anthony Wang 2019-07-26 15:40:54 -05:00 committed by GitHub
parent a5b7c15230
commit b0bc5023ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,6 @@ public:
for (int i = x; i > 0; i -= i & -i) {
for (int j = y; j > 0; j -= j & -j) ret += FT[i][j];
}
return ans;
return ret;
}
}