@@ -0,0 +1,1938 @@
+//https://www.hackerrank.com/challenges/sherlock-and-planes%0Aimport java.io.*;%0A%0Apublic class Solution %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        StringBuffer sb = new StringBuffer();%0A        %0A        //INPUT%0A        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));%0A        for(short T = Short.parseShort(br.readLine()); T %3E 0; --T)%7B%0A            Point3D a = getPoint(br.readLine());%0A            Point3D b = getPoint(br.readLine());%0A            Point3D c = getPoint(br.readLine());%0A            Point3D d = getPoint(br.readLine());%0A            %0A            //SOLVE%0A            boolean isCoplanar = 0 == dotProduct(%0A                normal(a, b, c), %0A                vector(a, d)%0A            );%0A            %0A            //OUTPUT%0A            sb.append((isCoplanar)? %22YES%5Cn%22 : %22NO%5Cn%22);%0A        %7D%0A        System.out.print(sb);%0A    %7D%0A    %0A    private static Point3D getPoint(String str)%7B%0A        String%5B%5D coords = str.split(%22 %22);%0A        return new Point3D(%0A            Short.parseShort(coords%5B0%5D),%0A            Short.parseShort(coords%5B1%5D),%0A            Short.parseShort(coords%5B2%5D)%0A        );%0A    %7D%0A    %0A    private static int dotProduct(Point3D v1, Point3D v2)%7B%0A        return v1.x*v2.x + v1.y*v2.y + v1.z*v2.z;%0A    %7D%0A    %0A    private static Point3D normal(Point3D p1, Point3D p2, Point3D p3)%7B%0A        final Point3D a = vector(p1, p2);%0A        final Point3D b = vector(p1, p3);%0A        return new Point3D(%0A            a.y*b.z - a.z*b.y,%0A            a.z*b.x - a.x*b.z,%0A            a.x*b.y - a.y*b.x%0A        );%0A    %7D%0A    %0A    private static Point3D vector(Point3D p1, Point3D p2)%7B%0A        return new Point3D(%0A            p2.x - p1.x,%0A            p2.y - p1.y,%0A            p2.z - p1.z%0A        );%0A    %7D%0A    %0A    public static class Point3D%7B%0A        int x, y, z;%0A        public Point3D(int x, int y, int z)%7B%0A            this.x = x;%0A            this.y = y;%0A            this.z = z;%0A        %7D%0A    %7D%0A%7D%0A

Create sherlock-and-planes.java