- import java.io.BufferedReader;
- import java.io.FileReader;
- import java.util.Scanner;
- public class JP405 {
- public static void main(String[] args) throws Exception {
- int t[]=new int[3];
- Scanner s=new Scanner(System.in);
- for(int i=0; i<3; i++)
- t[i]=s.nextInt();
- BufferedReader br=new BufferedReader(new FileReader("read.txt"));
- for(int i=0; i<3; i++)
- {
- String str=br.readLine();
- for(int j=0, len=str.length(); j<len; j++)
- {
- if(j<t[i])
- System.out.print(t[i]);
- else
- System.out.print(str.charAt(j));
- }
- System.out.println();
- }
- }
- }
複製代碼 |