fork download
  1. #include <iostream>
  2. using namespace std;
  3. int main(){
  4. long long n;
  5. cin >> n;
  6. long long s=0;
  7. for (int i=1; i<=n; i++){
  8. cin >> n;
  9. if (n < 1000000000) {
  10. continue;
  11. bool check= true ;
  12.  
  13. s++;
  14. }
  15. cout << s;
  16. }
  17.  
  18. }
Success #stdin #stdout 0.01s 5284KB
stdin
5
1 2 3 -4 5
stdout
Standard output is empty