Contiguous-Subarrays

Given an array of integers a, consider all this Contiguous Subarrays of length m. Calculate the number of such subarrays, which contain a pair of integers in it with sum greater than or equal to k.