import java.util.*; public class Main { static HashMap hm; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String[] str = sc.nextLine().split(" "); int n = Integer.parseInt(str[0]); int r = Integer.parseInt(str[1]); // 读取...