Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main()
- {
- int n;
- int m;
- cin >> n >> m; cin.ignore();
- int s;
- cin >> s; cin.ignore();
- int b;
- for (int i = 0; i < n; i++) {
- string row;
- getline(cin, row);
- for(int m = 0; m < row.length(); m++) {
- if(row[m] == 'o') {
- b++;
- break;
- }
- }
- }
- // Write an answer using cout. DON'T FORGET THE "<< endl"
- // To debug: cerr << "Debug messages..." << endl;
- cout << b << endl;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement