网易笔试第二题求ABpq问题 public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long[][] ans = new long[n][4]; for(int i=0;i<n;i++){ ans[i][0] = sc.nextInt(); ans[i][1] = sc.n...