Problem Description The company "21st Century Fruits" has specialized in creating new sorts of fruits by transferring genes from one fruit into the genome of another one. Most times this method doesn't work, but sometimes, in very rare cases, a…
import java.util.ArrayList; import java.util.Scanner; public class Text { @SuppressWarnings("resource") public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int M = scanner.nextInt();//M代表输入的M串字符串 int N=scanner.next…