Пожалуйста, подпишитесь на официальный канал Codeforces в Telegram по ссылке https://t.me/codeforces_official. ×

Interesting problem

Правка en2, от Romed, 2019-06-11 11:09:41

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 1\n 1 2 3 4 Sample output 8/3

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en5 Английский Romed 2019-06-11 11:21:13 0 (published)
en4 Английский Romed 2019-06-11 11:19:46 44 Tiny change: 'nput\n4 10\n1 2 3 4\' -> 'nput\n4 10 \n1 2 3 4\'
en3 Английский Romed 2019-06-11 11:09:58 6 Reverted to en1
en2 Английский Romed 2019-06-11 11:09:41 6
en1 Английский Romed 2019-05-10 03:08:59 309 Initial revision (saved to drafts)