Advertisement
askarulytarlan

Задача №345. Нули

Oct 24th, 2016
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. #include <iostream>
  2. #include <fstream>
  3. #include <cmath>
  4. #include <math.h>
  5.  
  6.  
  7. using namespace std;
  8.  
  9. int a, c, b;
  10. int main(int argc, const char * argv[]) {
  11. c = 0;
  12. cin >> b;
  13. for(int i = 1; i <= b; i++){
  14. cin >> a;
  15. if(a == 0){
  16. c = c + 1;
  17. }
  18. }
  19. cout << c;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement