先上代码第一个: import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int count = sc.nextInt(); String line; long a; long b; long c; boolean[] booleans = new boolean[count]; ...