Romed's blog

By Romed, history, 6 years ago, In English

Hello everyone
I've come across this problem and I can't figure out how to solve it.
We have an array a of length N (1<N<60) . We write down average of all the sub arrays of a and sort them. The problem is what is the Kth number (1<K<2^N)
sample input
4 10
1 2 3 4
Sample output
8/3

  • Vote: I like it
  • +4
  • Vote: I do not like it

»
5 years ago, # |
  Vote: I like it +3 Vote: I do not like it

What are the limits on the values of the array $$$a$$$?

  • »
    »
    5 years ago, # ^ |
      Vote: I like it +10 Vote: I do not like it

    Less than 60

    • »
      »
      »
      5 years ago, # ^ |
        Vote: I like it +6 Vote: I do not like it
      Hint