Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #define faster ios_base::sync_with_stdio(NULL); cin.tie(0); cout.tie(0);
- #define input cin("input.txt");
- #define output cout("output.txt");
- #define ll long long
- #define ull unsigned long long
- #define F first
- #define S second
- using namespace std;
- int main() {
- int n, m, ans = 0;
- cin >> n >> m;
- for(int i = 0; i < n; i++) {
- string a;
- cin >> a;
- if(a.find('+') != -1)
- ans++;
- }
- cout << ans;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement