Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <set>
- #include <vector>
- using namespace std;
- int main()
- {
- int n;
- while (cin >> n)
- {
- vector<int> v;
- int x;
- for (int i = 0; i < n; i++)
- {
- cin >> x;
- v.push_back(x);
- }
- int a, b;
- cin >> a >> b;
- int cnt = 0;
- for (auto el : v)
- {
- if (el >= a && el <= b)
- {
- cnt++;
- }
- }
- cout << cnt << "\n";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement