题目链接:
https://pintia.cn/problem-sets/994805260223102976/problems/994805266514558976
AC代码:
#include <bits/stdc++.h>
using namespace std;
int main(){
int M,N,A,B,change;
scanf("%d%d%d%d%d",&M,&N,&A,&B,&change);
while(M--){
for(int i=0;i<N;i++){
int tmp;
scanf("%d",&tmp);
if(tmp>=A&&tmp<=B)
{
printf("%03d",change);
}
else{
printf("%03d",tmp);
}
if(i!=N-1){
printf(" ");
}
}
printf("\n");
}
}