john9's blog

By john9, 12 years ago, In English

this is the problem 220B - Little Elephant and Array my solution:- 2096939 thanks in advance

  • Vote: I like it
  • 0
  • Vote: I do not like it

| Write comment?
»
12 years ago, # |
  Vote: I like it 0 Vote: I do not like it

You should precompute the function f[i][j] which means the number of integer i from 1 to j in the array.