The angle between the vectors
Very easy
Execution time limit is 1 second
Runtime memory usage limit is 122.174 megabytes
Calculate the angle between two vectors.
Input
Four integers x[1]
,y[1]
,x[2]
,y[2]
- the coordinates of two nonzero vectors. All values do not exceed 10000 by the absolute value.
Output
Print the value of an undirected angle between vectors with 5 decimal places in the interval [0; π].
Examples
Input #1
Answer #1
Submissions 8K
Acceptance rate 49%