mirror of
https://github.com/xlucn/PAT.git
synced 2026-02-07 19:43:43 +08:00
18 lines
287 B
C
18 lines
287 B
C
#include <stdio.h>
|
|
|
|
int main()
|
|
{
|
|
int N, M, A, B, C, D;
|
|
|
|
scanf("%d %d %d %d %d", &M, &N, &A, &B, &C);
|
|
|
|
for (int i = 0; i < M; i++)
|
|
for (int j = 0; j < N; j++) {
|
|
scanf("%d", &D);
|
|
if (A <= D && D <= B) D = C;
|
|
printf("%03d%c", D, j == N - 1 ? '\n' : ' ');
|
|
}
|
|
|
|
return 0;
|
|
}
|