#include<stdio.h>
int main(){
int i, j, n, m, a, b, to, temp;
scanf("%d%d%d%d%d",&m,&n,&a,&b,&to);
for(i=0;i<m;i++){
for(j=0;j<n;j++){
scanf("%d",&temp);
if(temp<=b&&temp>=a)printf("%03d",to);
else printf("%03d",temp);
if(j<n-1)printf(" ");
else printf("\n");
}
}
return 0;
}
PAT-B1066
最新推荐文章于 2019-12-02 00:59:09 发布