# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
1024049 | kustizus | Bold (COCI21_bold) | C++17 | 0 ms | 604 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>
#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 time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |