Subarray Sums I
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given an array of positive integers, find the number of subarrays whose sum is equal to .
Input
The first line contains the size of the array and the target sum . The next line contains integers — the contents of the array.
Output
Print the required number of subarrays.
Examples
Input #1
Answer #1
Submissions 248
Acceptance rate 35%