/** 纯逻辑操作,仅抛砖引玉 测试通过88%,时间超时 **/ import java.util.LinkedList; import java.util.Queue; import java.util.Scanner; public class FangKuai { static int RED = 0, GREEN = 1, BLUE = 2, YELLOW = 3, PURPLE = 4, DEL = -1; static int[][] p = { {RED,RED,BLUE,BLUE,GREEN,YELLOW,BLUE,YELLOW,RED,PURPLE}...