# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
682571 | vjudge1 | Bold (COCI21_bold) | C++17 | 1 ms | 324 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 main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
int n, m;
cin >> n >> m;
vector<string> a(n);
for (int i = 0; i < n; ++i) {
cin >> a[i];
}
for (int i = n - 2; i >= 0; --i) {
for (int j = m - 2; j >= 0; --j) {
if (a[i][j] == '#') {
a[i][j + 1] = a[i + 1][j + 1] = a[i + 1][j] = '#';
}
}
}
for (int i = 0; i < n; ++i) {
cout << a[i] << '\n';
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |