Problem Description

Given n integers and k, find the longest subarray with sum exactly k.

Input Format

Line1 n k. Line2 n integers.

Output Format

One integer length.

Sample Test Case

Input:
8 7 1 2 3 4 3 2 1 1
Output:
3

Constraints

n

Solutions (0)

No solutions submitted yet. Be the first!

Discussion (0)

No comments yet. Start the discussion!

Prev Next