题目:https://pintia.cn/problem-sets/994805260223102976/problems/994805266514558976
代码
#include<cstdio>int main(){int m, n, a, b, gray, temp;scanf("%d%d%d%d%d", &m, &n, &a, &b, &gray);for(int i = 0; i < m; i++){for(int j = 0; j < n; j++){scanf("%d", &temp);if(temp <= b && temp >= a) printf("%03d", gray);else printf("%03d", temp);if(j != n - 1) printf(" ");}printf("\n");}}
