I was trying to solve subsequences http://codeforces.me/problemset/problem/597/C of Testing Round #12 but could not figure out the solution.Can anyone explain the solution using binary indexed tree.
NEED HELP IN A PROBLEM
I was trying to solve subsequences http://codeforces.me/problemset/problem/597/C of Testing Round #12 but could not figure out the solution.Can anyone explain the solution using binary indexed tree.