#include<stdio.h>
int Picture[510][510];
int main()
{
int m, n, a, b, d;
//scanf_s("%d%d%d%d%d", &m, &n, &a, &b, &d);
scanf("%d%d%d%d%d", &m, &n, &a, &b, &d);
for(int i = 1; i <= m; i++)
for (int j = 1; j <= n; j++)
{
int c;
//scanf_s("%d", &c);
scanf("%d", &c);
if (c >= a&&c <= b)
{
c = d;
}
Picture[i][j] = c;
}
for (int i = 1; i <= m; i++)
{
for (int j = 1; j <= n; j++)
{
if (j == 1)
{
printf("%03d", Picture[i][j]);
}
else if (j == n)
{
printf(" %03d\n", Picture[i][j]);
}
else
{
printf(" %03d", Picture[i][j]);
}
}
}
//system("pause");
return 0;
}
1066
最新推荐文章于 2019-08-26 11:18:01 发布