#include <bits/stdc++.h>
using namespace std;
int n,m,ans;
string s[10];
int main()
{
cin>>n>>m;
for (int i=0;i<n;i++)
cin>>s[i];
for (int i=0;i<n;i++)
for (int y=0;y<m;y++)
if (s[i][y]!='.')
ans++;
cout <<ans/4<<"\n0\n0\n0\n0";
}
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
384 KB |
Output is correct |
2 |
Correct |
1 ms |
364 KB |
Output is correct |
3 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
4 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
5 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
6 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
7 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
8 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
9 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |
10 |
Incorrect |
1 ms |
364 KB |
Output isn't correct |