Submission #1024049

#TimeUsernameProblemLanguageResultExecution timeMemory
1024049kustizusBold (COCI21_bold)C++17
50 / 50
0 ms604 KiB
#include <bits/stdc++.h> #define ll long long int using namespace std; const ll N=105; ll n,m; char a[N][N]; int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); cin>>n>>m; for (ll i=1;i<=n;i++) for (ll j=1;j<=m;j++) cin>>a[i][j]; for (ll i=n;i>=1;i--) for (ll j=m;j>=1;j--) if (a[i][j]=='#'){ a[i+1][j]='#'; a[i][j+1]='#'; a[i+1][j+1]='#'; } for (ll i=1;i<=n;i++){ for (ll j=1;j<=m;j++) cout<<a[i][j]; cout<<endl; } }
#Verdict Execution timeMemoryGrader output
Fetching results...