You are viewing a single comment's thread. Return to all comments →
very simple java
while(n-- > 0) { int pX = scan.nextInt(); int pY = scan.nextInt(); int qX = scan.nextInt(); int qY = scan.nextInt(); System.out.println(((2 * qX) - pX) + " " + ((2 * qY) - pY)); }
Seems like cookies are disabled on this browser, please enable them to open this website
Find the Point
You are viewing a single comment's thread. Return to all comments →
very simple java
while(n-- > 0) { int pX = scan.nextInt(); int pY = scan.nextInt(); int qX = scan.nextInt(); int qY = scan.nextInt(); System.out.println(((2 * qX) - pX) + " " + ((2 * qY) - pY)); }