Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <bits/stdc++.h>
- using namespace std;
- using ll = long long;
- int main()
- {
- ll x, y;
- cin >> x >> y;
- ll ans = y + 1;
- vector<vector<char>> z1(x);
- for (int i = 0; i < x; i++)
- {
- for (int j = 0; j < y; j++)
- {
- char w;
- cin >> w;
- z1.at(i).push_back(w);
- }
- }
- for (int i = 0; i < y; i++)
- {
- for (int j = 0; j < x; j++)
- {
- if (z1.at(j).at(i) != '_')
- {
- ans -= 1;
- break;
- }
- }
- }
- cout << ans << endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment