Advertisement
obektev

Untitled

Jan 27th, 2022
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. /******************************************************************************
  2.  
  3. Online C++ Compiler.
  4. Code, Compile, Run and Debug C++ program online.
  5. Write your code in this editor and press "Run" button to compile and execute it.
  6.  
  7. *******************************************************************************/
  8.  
  9. #include <bits/stdc++.h>
  10.  
  11. using namespace std;
  12.  
  13. int main()
  14. {
  15. int n,m,t;
  16. cin>>n>>m>>t;
  17. int a[n];
  18. int count = 0;
  19. for (int i = 0; i < n; i++) {
  20. int temp;
  21. cin>>temp;
  22. if (temp < t && temp > m) count++;
  23. }
  24. cout<<count;
  25. return 0;
  26. }
  27.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement