# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
339790 | ammar2000 | Tetris (COCI17_tetris) | C++17 | 1 ms | 384 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#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 |
---|---|---|---|---|
Fetching results... |