# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
943735 | vjudge1 | Bold (COCI21_bold) | C++11 | 1 ms | 348 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(0);
int n,m;
cin>>n>>m;
char matriz[n][m];
char matrizans[n][m];
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cin>>matriz[i][j];
matrizans[i][j]='a';
}
}
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
if(matrizans[i][j]=='a')matrizans[i][j]=matriz[i][j];
if(matriz[i][j]=='#'){
matrizans[i][j+1]='#';
matrizans[i+1][j]='#';
matrizans[i+1][j+1]='#';
}
}
}
for(int i=0;i<n;i++){
for(int j=0;j<m;j++){
cout<<matrizans[i][j];
}
cout<<"\n";
}
return 0;
}
# | Verdict | Execution time | Memory | Grader output |
---|---|---|---|---|
Fetching results... |