Subsegments
题号:NC237451
时间限制:C/C++/Rust/Pascal 2秒,其他语言4秒
空间限制:C/C++/Rust/Pascal 256 M,其他语言512 M
64bit IO Format: %lld

题目描述

You are given an array of integers and an integer x.

Output the number of subsegments where such that .

输入描述:

The first line contains two integers n and x (, ).

The second line contains n numbers .

输出描述:

Output one integer, the answer.
示例1

输入

复制
10 6
2 3 2 1 6 2 3 2 1 7

输出

复制
8