# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
837331 | vjudge1 | Bold (COCI21_bold) | C++17 | 0 ms | 212 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 <cstdio>
char c[101][101], x;
int n, m, i, j;
int main() {
scanf("%d%d", &m, &n);
for (i = 0; i < m; i++) {
for (j = 0; j < n; j++) {
scanf(" %c", &x);
if (x == '#') c[i][j] = c[i + 1][j] = c[i][j + 1] = c[i + 1][j + 1] = '#';
else if (c[i][j] != '#') c[i][j] = '.';
}
}
for (i = 0; i < m; i++) printf("%s\n", c[i]);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |