Vectors#4777

Vectors

1 Sekunde
64 Megabyte
Sehr leicht

Given two non-zero vectors, your task is to compute the following:

Eingabe

The input consists of two lines. The first line contains four integers representing the coordinates of the start and end points of the first vector. The second line contains four integers representing the coordinates of the start and end points of the second vector. Each integer does not exceed in absolute value.

Ausgabe

For each task item, output the result on a new line, ensuring a precision of at least 10^{-6}.

Beispiele

Beispiel 1

Loading
Loading