Advertisement
PGSStas

A

Sep 19th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <string>
  3.  
  4. #define faster ios_base::sync_with_stdio(NULL); cin.tie(0); cout.tie(0);
  5. #define input cin("input.txt");
  6. #define output cout("output.txt");
  7. #define ll long long
  8. #define ull unsigned long long
  9. #define F first
  10. #define S second
  11.  
  12. using namespace std;
  13.  
  14. int main() {
  15.   int n, m, ans = 0;
  16.   cin >> n >> m;
  17.   for(int i = 0; i < n; i++) {
  18.     string a;
  19.     cin >> a;
  20.     if(a.find('+') != -1)
  21.       ans++;
  22.   }
  23.   cout << ans;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement