- 历届试题 带分数
1级测验倒数第二题
- 2023-7-25 13:44:28 @
#include <bits/stdc++.h>
using namespace std;
int main()
{
int n,L,R;
cin>>n>>L>>R;
int a,sum=0;
for(int i=1;i<=n;i++)
{
cin>>a;
if(a>=L&&a<=R)
{
sum++;
}
}
cout<<sum;
return 0;
}
0 comments
No comments so far...
Information
- ID
- 631
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 10
- Tags
- # Submissions
- 2
- Accepted
- 1
- Uploaded By