Submission #587684

#TimeUsernameProblemLanguageResultExecution timeMemory
587684MilosMilutinovicBold (COCI21_bold)C++14
50 / 50
1 ms316 KiB
/** * author: wxhtzdy * created: 02.07.2022 10:28:06 **/ #include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); int n, m; cin >> n >> m; vector<string> s(n); for (int i = 0; i < n; i++) { cin >> s[i]; } vector<vector<char>> t(n, vector<char>(m, '.')); for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { if (s[i][j] == '.') { continue; } for (int x = 0; x <= 1; x++) { for (int y = 0; y <= 1; y++) { t[i + x][j + y] = '#'; } } } } for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { cout << t[i][j]; } cout << '\n'; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...