/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
Scanner in
= new Scanner
(System.
in);
double ax, ay, bx, by, cx, cy, dx, dy;//Даны по условию или нужно найти.
double A1, B1, C1, A2, B2, C2, ox, oy;//Используются для вычислений.
System.
out.
println("Введите координаты точек A, B, C."); ax = in.nextDouble();
ay = in.nextDouble();
bx = in.nextDouble();
by = in.nextDouble();
cx = in.nextDouble();
cy = in.nextDouble();
A1=cy-by;//Постоянные из уравнения прямой BC.
B1=bx-cx;
C1=by*(cx-bx)-bx*(cy-by);
A2=-B1;//Постоянные из уравнения прямой a.
B2=A1;
C2=B1*ax-A1*ay;
ox=(B1*C2-B2*C1)/(A1*B2-A2*B1);//Координаты точки О.
oy=(C1*A2-C2*A1)/(A1*B2-A2*B1);
dx=2*ox-ax;//Координаты точки D.
dy=2*oy-ay;
System.
out.
println("D("+dx
+";"+dy
+")"); }
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCVNjYW5uZXIgaW4gPSBuZXcgU2Nhbm5lcihTeXN0ZW0uaW4pOwoJCQoJCWRvdWJsZSBheCwgYXksIGJ4LCBieSwgY3gsIGN5LCBkeCwgZHk7Ly/QlNCw0L3RiyDQv9C+INGD0YHQu9C+0LLQuNGOINC40LvQuCDQvdGD0LbQvdC+INC90LDQudG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