#1147. KJ20231204 统计数

KJ20231204 统计数

Background

一个由n个数字组成的序列,给定一个区间[m , n],求序列中介于区间的数的个数(即大于等于m,小于等于n的数的个数)

Description

Given two integers x and y, print the sum.

Format

Input

第一行输入一个整数n 第二行输入两个整数 m 和 n 第三行输入n个整数,表示序列 .

Output

输出一个整数

Samples

5
1 10
11 8 1 10 16
3

Limitation

1s, 1024KiB for each test case.