[READ-ONLY] Mirror of https://github.com/shuuji3/competitive-programming. 馃洬 Codes submitted to competitive programming platforms
aizu-online-jadge aoj atcoder hackerrank leetcode
0

Configure Feed

Select the types of activity you want to include in your feed.

1import math 2 3a, b, C = map(float, input().split()) 4C = C / 180 * math.pi # convert to radian 5 6h = b * math.sin(C) 7S = a * h / 2 8c = math.sqrt((a - b * math.cos(C)) ** 2 + h ** 2) 9L = a + b + c 10 11print(S) 12print(L) 13print(h)