Basic Operations on a Vector#4776

Basic Operations on a Vector

1 segundo
64 megabytes
Muy fácil

Given two distinct points on a plane, perform the following calculations:

Entrada

The input consists of three lines. The first two lines each contain two integers representing the coordinates of the given points. The third line contains a natural number specifying the length for the vector in the third task. All numbers in the input do not exceed in absolute value.

Salida

For each task item, output the coordinates of the resulting vector on a separate line, with an accuracy of 10^{-4}.

Ejemplos

Ejemplo 1

Loading
Loading