原来不用vis数组也可哈哈,不用去去重了,更新版! import java.io.*; import java.util.*; public class Main{ static int m, n; static ArrayList<String> strList = new ArrayList<>(); public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamR...