Skip to content

Instantly share code, notes, and snippets.

@yurahuna
Created October 2, 2016 08:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yurahuna/8ea964f3a3d891b3d9e6eb056ead9d88 to your computer and use it in GitHub Desktop.
Save yurahuna/8ea964f3a3d891b3d9e6eb056ead9d88 to your computer and use it in GitHub Desktop.
signed main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n, a, b;
cin >> n >> a >> b;
int ans = 0;
rep(i, n) {
int x;
cin >> x;
if (!(a <= x && x < b)) {
ans++;
}
}
cout << ans << endl;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment