@@ -0,0 +1,729 @@
+import java.util.Scanner;%0A%0Apublic class Main %7B%0A%0A    public static void main(String%5B%5D args) %7B%0A%0A        Scanner sc = new Scanner(System.in);%0A%0A        int N = sc.nextInt();%0A%0A        for (int i = 0; i %3C N; i++) %7B%0A%0A            double aX = sc.nextDouble();%0A            double aY = sc.nextDouble();%0A            double bX = sc.nextDouble();%0A            double bY = sc.nextDouble();%0A%0A            double cX = sc.nextDouble();%0A            double cY = sc.nextDouble();%0A            double dX = sc.nextDouble();%0A            double dY = sc.nextDouble();%0A%0A            double slope1 = (bY - aY) / (bX - aX);%0A            double slope2 = (dY - cY) / (dX - cX);%0A%0A            System.out.println(slope1 == slope2 ? %22YES%22 : %22NO%22);%0A%0A        %7D%0A%0A    %7D%0A%0A%7D%0A

Create : 0021