# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
484575 | rainboy | Bold (COCI21_bold) | C11 | 1 ms | 204 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 <stdio.h>
#define N 100
#define M 100
int main() {
static char cc[N][M + 1];
int n, m, i, j;
scanf("%d%d", &n, &m);
for (i = 0; i < n; i++)
scanf("%s", cc[i]);
for (i = n - 1; i >= 0; i--)
for (j = m - 1; j >= 0; j--)
if (cc[i][j] == '#')
cc[i][j + 1] = cc[i + 1][j] = cc[i + 1][j + 1] = '#';
for (i = 0; i < n; i++)
printf("%s\n", cc[i]);
return 0;
}
Compilation message (stderr)
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |