Subarray Sums I
Easy
Execution time limit is 1 second
Runtime memory usage limit is 128 megabytes
Given an array of positive integers, your task is to count the number of subarrays having sum .
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 148
Acceptance rate 19%