import java.text.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
DecimalFormat df = new DecimalFormat("000");
String[] mnRange=br.readLine().trim().split(" ");
int M=Integer.parseInt(mnRange[0]),N=Integer.parseInt(mnRange[1]);
int min=Integer.parseInt(mnRange[2]),max=Integer.parseInt(mnRange[3]);
int assign=Integer.parseInt(mnRange[4]);
for(int i=0;i<M;i++){
String[] resolutionStr=br.readLine().trim().split(" ");
int[] resolution=new int[N];
String result="";
for(int j=0;j<N;j++) {
resolution[j] = Integer.parseInt(resolutionStr[j]);
if (resolution[j]<= max && resolution[j] >= min) resolution[j]= assign;
result+=df.format(resolution[j])+" ";
}
System.out.println(result.trim());
}
}
}
请问具体应该怎么解决?