# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
923345 | Isam | Bold (COCI21_bold) | C++17 | 1 ms | 604 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;
constexpr int sz = 2e5 + 5;
int n, m;
bool h[101][101];
string c;
signed main(){
ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
cin >> n >> m;
for(register int i = 1; i <= n; ++i){
cin >> c;
for(register int j = 1; j <= m; ++j){
if(c[j-1] == '#'){
h[i][j] = h[i+1][j] = h[i][j+1] = h[i+1][j+1] = true;
}
}
}
for(register int i = 1; i <= n; ++i){
for(register int j = 1; j <= m; ++j){
cout << (h[i][j] ? '#' : '.');
}
cout << '\n';
}
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |