# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
837331 | 2023-08-25T09:37:13 Z | vjudge1 | Bold (COCI21_bold) | C++17 | 0 ms | 212 KB |
#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
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
1 | Correct | 0 ms | 212 KB | Output is correct |
2 | Correct | 0 ms | 212 KB | Output is correct |
3 | Correct | 0 ms | 212 KB | Output is correct |
4 | Correct | 0 ms | 212 KB | Output is correct |
5 | Correct | 0 ms | 212 KB | Output is correct |