The task is: introduced 2 numbers N(0-10000) - number of components, Q - number of requests. Then inputs N numbers of tests results. And then input Q numbers. Need to summar