Cody

Problem 44880. Angle between two vectors

Created by Siddhant Shenoy in Community

Given 2 pairs of cartesian co-ordinates, determine the angle between the 2 vectors formed by the points and the origin. Angle must be in [0,180] and in degrees.

e.g.

  • Input (3 separate inputs)
[0 1;2 0]
[1 1;-2 0]
[1 1;2 2]
  • Output (3 separate outputs):
90
135
0

Solution Stats

41.67% Correct | 58.33% Incorrect
Last solution submitted on Jul 17, 2019