module main; // 計算幾何 import std; void main() { // 入力 double x1, y1, x2, y2; readln.chomp.formattedRead("%f %f", x1, y1); readln.chomp.formattedRead("%f %f", x2, y2); // 答えの計算 x2 = -x2; double ans = (x1 * y2 - x2 * y1) / (x1 - x2); // 答えの出力 writefln("%.12f", ans); }