Average Query

Limits 2s, 512 MB

You are given an array s1,s2,…,sns_1, s_2, \ldots, s_ns1​,s2​,…,sn​ of length nnn and an arbitrary integer xxx.


This is a companion discussion topic for the original entry at https://toph.co/p/average-query