Submission #397602

#TimeUsernameProblemLanguageResultExecution timeMemory
397602MrRobot_28Bold (COCI21_bold)C++17
50 / 50
1 ms320 KiB
#include<bits/stdc++.h> using namespace std; #define X first #define Y second #define int long long #define sz(a) (int)a.size() const int mod = 998244353; signed main() { // ifstream cin("input1.txt.4c"); ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); int n, m; cin >> n >> m; char A[n][m]; for(int i = 0; i < n; i++) { for(int j = 0; j < m; j++) { cin >> A[i][j]; } } for(int i = n - 1; i >= 0; i--) { for(int j = m - 1; j >= 0; j--) { if(A[i][j] == '#') { A[i + 1][j] = A[i][j + 1] = A[i + 1][j + 1] = '#'; } } } for(int i = 0; i < n; i++) { for(int j = 0; j < m; j++) { cout << A[i][j]; } cout << "\n"; } return 0; }
#Verdict Execution timeMemoryGrader output
Fetching results...