Problem Description

Read n integers and target K. Count number of subarrays with sum exactly K. Output the count.

Input Format

First line n K. Second line n integers.

Output Format

One integer count.

Sample Test Case

Input:
5 3 1 2 1 2 -1
Output:
4

Constraints

1

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next