Skip to content

Instantly share code, notes, and snippets.

@meet100ni
Created May 13, 2020 13:34
Show Gist options
  • Save meet100ni/88e9f2482242f37c1f9c11c9fe99970e to your computer and use it in GitHub Desktop.
Save meet100ni/88e9f2482242f37c1f9c11c9fe99970e to your computer and use it in GitHub Desktop.
Find Angle MBC HackerRank Solution
# Enter your code here. Read input from STDIN. Print output to STDOUT
from math import atan
from math import degrees
ab = int(input())
bc = int(input())
print(str(round(degrees(atan((ab / 2) / (bc / 2))))) + "°")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment