Problem:
Triangle For given two sides of a triangle a and b and the angle C between them, calculate the following properties:  S : Area of the triangle  L : The length of the circumference of the triangle  h : The height of the triangle with side a as a bottom edge  Input The length of a , the length of b and the angle C are given in integers. Output Print S , L and h in a line respectively. The output should not contain an absolute error greater than 10 -4 . Sample Input 4 3 90 Sample Output 6.00000000
12.00000000
3.00000000

Solution (Python):
import decimal
import math


a, b, C = map(decimal.Decimal, input().split())


S = decimal.Decimal("0.5") * a * b * decimal.Decimal(math.sin(math.radians(C)))

c = decimal.Decimal(math.sqrt(a ** decimal.Decimal("2") + b ** decimal.Decimal("2") - decimal.Decimal("2") * a * b * decimal.Decimal(math.cos(math.radians(C)))))
L = a + b + c
h = b * decimal.Decimal(math.sin(math.radians(C)))

print(f"{S} {L} {h}")

Solution (Python):
import math 
a,b,c=map(float,input().split())
d=a*a+b*b-2*a*b*math.cos(math.pi*c/180)
print(0.5*a*b*math.sin(math.pi*c/180))
print(a+b+d**0.5)
print(b*math.sin(math.pi*c/180))

Solution (Python):
import math
a, b, angle = map(float, input().split())

S = 1/2 * a * b * math.sin(math.radians(angle))

L = a + b + math.sqrt(a **2 + b ** 2 - 2 *a*b*math.cos(math.radians(angle)))

h = b * math.sin(math.radians(angle))

print(S)
print(L)
print(h)

Solution (Python):
import math

a,b,C = map(int, input().split())
S = (1/2)*a*b*math.sin(math.radians(C))
L = (a**2+b**2-2*a*b*math.cos(math.radians(C)))**(1/2)+a+b
h = 2*S/a
print(S)
print(L)
print(h)

Solution (Python):
import math
a, b, C = map(float, input().split())
rad = C * math.pi / 180
S = a * b * math.sin(rad) / 2
c = math.sqrt(a ** 2 + b ** 2 - 2*a*b*math.cos(rad))
L = a + b + c
h = 2 * S / a
print(f'{S} {L} {h}')

Solution (Python):

import math

a, b, C = map(int, input().split())
rad = math.radians(C)
L = math.sqrt(a**2 + b**2 -2 * a * b * math.cos(rad)) + a + b
h = b*math.sin(rad)
S = a*h/2
print(S)
print(L)
print(h)

Solution (Python):
a, b, c = map(float, input().split())
import math
s=f"{0.5*a*b*(math.sin(c*(math.pi)/180)):.8f}"
L=f"{a+b+math.sqrt(a*a+b*b-2*a*b*(math.cos(c*(math.pi)/180))):.8f}"
h=f"{b*(math.sin(c*(math.pi)/180)):.8f}"
print(s)
print(L)
print(h)

Solution (Python):
import math

a,b,c = map(int, input().split())

si = math.sin(math.radians(c))
cs = math.cos(math.radians(c))

ta = (b * si)
print(ta * a/2)
yf = (a-(b*cs))
d = math.sqrt((yf * yf) + (ta * ta))
print(a+b+d)
print(ta)

Solution (Python):
import math

a,b,C=map(float,input().split())

print("%f"%(1/2*a*b*math.sin(math.radians(C))))
print("%f"%(a+b+math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(C)))))
print("%f"%((1/2*a*b*math.sin(math.radians(C)))/a*2))

Solution (Python):
import cmath, math

a,b,dig = map(float, input().split())

th = math.radians(dig)
pos_a = complex(a,0.0)
pos_b = cmath.rect(b,th)

c = abs(pos_a-pos_b)

print (pos_a.real * pos_b.imag /2.0)
print (a + b + c)
print (pos_b.imag)

Solution (Python):
import math

a,b,deg = map(int,input().split())
radi = math.radians(deg)

S = 1/2 * a * b * math.sin(radi)
L = a + b + math.sqrt(a**2+b**2 - 2*a*b*math.cos(radi))
h = b * math.sin(radi)

print("{:.8}".format(S))
print("{:.8}".format(L))
print("{:.8}".format(h))

Solution (Python):
import math
a,b,c=map(float,input().split())
C=c*math.pi/float(180)
S=(1/2)*a*b*math.sin(C)
L=a+b+math.sqrt((a*a+b*b)-2*a*b*math.cos(C))
h=b*math.sin(C)
print('{:.8f}'.format(S))
print('{:.8f}'.format(L))
print('{:.8f}'.format(h))

Solution (Python):
from math import sqrt, sin, cos, pi

a, b, C = map(int, input().split())
C *= pi / 180
print(a * b * sin(C) / 2)
print(sqrt(a**2 + b**2 - a * b * cos(C) * 2) + a + b)
print(b * sin(C))

Solution (Python):
import math
a,b,c = map(int, input().split())
rad = math.radians(c)

S=0.5*a*b*math.sin(rad)
d=math.sqrt(a*a+b*b-2*a*b*math.cos(rad))
L=a+b+d
h=2*S/a
print('{:.8f}'.format(S))
print( '{:.8f}'.format(L))
print( '{:.8f}'.format(h))

Solution (Python):
import math
a,b,c = map(int, input().split())
d = math.radians(c)
print(0.5 * a * b * (math.sin(d)))
e = math.sqrt(a*a + b*b - 2*a*b*(math.cos(d)))
print(a+b+e)
print(b * (math.sin(d)))

Solution (Python):
import math


class Triangle(object):
    def __init__(self, a, b, C):
        self.a = a
        self.b = b
        self.C = C * math.pi / 180

    def getHeight(self):
        return self.b * math.sin(self.C)

    def getArea(self):
        return (self.a * self.getHeight()) / 2
    
    def getPerimeter(self):
        return self.a + self.b + math.sqrt(self.a ** 2 + self.b ** 2 - 2 * self.a * self.b * math.cos(self.C))


a = [int(e) for e in input().split()]
tri = Triangle(a[0], a[1], a[2])
print(tri.getArea())
print(tri.getPerimeter())
print(tri.getHeight())

Solution (Python):
import math

if __name__ == '__main__':
	a,b,C = map(float,input().split())
	c = (a**2 + b**2 -2*a*b*math.cos(math.radians(C)))**0.5
	s = (a+b+c)/2
	S = (s*(s-a)*(s-b)*(s-c))**0.5
	L = a + b + c
	h = (S*2)/a
	print(S)
	print(L)
	print(h)

Solution (Python):
import math
a,b,C = (float(x) for x in input().split())

s = 0.5*a*b*math.sin(C/180*math.pi)
print (s)

L = a + b + math.sqrt(b*b + a*a - 2 * a * b * math.cos(C/180*math.pi))
print (L)

h = b * math.sin(C/180*math.pi)
print (h)

Solution (Python):
a,b,c = [x for x in input().split(" ")]

import math
a = float(a)
b = float(b)
c = int(c)
pi =math.pi
rad = c/360 * 2 * math.pi
S = a * b * math.sin(rad) * 0.5
L = a + b + (a*a + b * b - 2 * a * b * math.cos(rad))**(0.5)
h = b * math.sin(rad)
print("{:.9} {:.9} {:.9}".format(S,L,h))

Solution (Python):
import math

a, b, C = map(float, input().split())
C = (C / 180) * math.pi
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(C))
h = b*math.sin(C)

print(a*h/2)
print(a + b + c)
print(h)

Solution (Python):
import math
a, b, d = map(float, input().split())
h = b * math.sin(d*math.pi/180)
s = a * h / 2
l = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(d*math.pi/180)) + a + b
print(s)
print(l)
print(h)

Solution (Python):
import math
a, b, C = map(float, input().split())
print('{:.5f}'.format(a*b*math.sin(math.radians(C))/2))
print('{:.5f}'.format(a+b+(a**2+b**2-2*a*b*math.cos(math.radians(C)))**0.5))
print('{:.5f}'.format(b*math.sin(math.radians(C))))

Solution (Python):
import math as m
a,b,C = map(int,input().split())
r = m.radians(C)
print(f'{a*b*m.sin(r)/2:.5f}')
print(f'{a+b+m.sqrt(a**2+b**2-2*a*b*m.cos(r)):.5f}')
print(f'{b*m.sin(r):.5f}')

Solution (Python):
from math import *
a,b,C=map(float,input().split())
C=radians(C)
print(sin(C)*a*b/2,(a*a+b*b-2*a*b*cos(C))**0.5+a+b,sin(C)*b,sep='\n')

Solution (Python):
import math

x = input()
list = x.split()
list_i =[float(s) for s in list]

a = list_i[0]
b = list_i[1]
theta = list_i[2]

sintheta = math.sin(math.radians(theta))
costheta = math.cos(math.radians(theta))

S = 0.5 * a * b * sintheta
h = b * sintheta
l = a ** 2 + b ** 2 - 2 * a * b * costheta
l2 = l ** 0.5
L = a + b + l2

S = str(S)
L = str(L)
h = str(h)

k = " "
ans = S + k + L + k + h
print(ans)

Solution (Python):
import math

a,b,degree = map(float, input().split())

rad = degree * math.pi / 180.0

Square = a * b / 2 * math.sin(rad)

c = b / math.sin(rad)

L =  a + b + math.sqrt(a*a + b*b - 2.0*a*b*math.cos(rad) )

h = b * math.sin(rad)

print("%.6f"%Square)
print("%.6f"%L)
print("%.6f"%h)

Solution (Python):
import math
nums = list(map(float, input().split()))
h = nums[1] * math.sin(nums[2] * math.pi / 180)
s = nums[0] * h / 2
c = math.sqrt(nums[0]**2 + nums[1]**2 - 2 * nums[0] * nums[1] * math.cos(nums[2] * math.pi / 180))
l = c + nums[0] + nums[1]
print(s, l, h, sep = '\n')

Solution (Python):
import math
a,b,C = map(float,input().split())

S = a*b*0.5*math.sin(math.radians(C)) 

c = (a**2 + b**2 -2*a*b*math.cos(math.radians(C)))**0.5

h = S*2/a

print(S)
print(a+b+c)
print(h)

Solution (Python):
import math
a, b, c = map(int, input().split())

S = 0.5*math.sin(math.radians(c))*a*b
L = (a**2+b**2-2*a*b*math.cos(math.radians(c)))**0.5 + a + b
h = 2*S/a
print(S,L,h)

Solution (Python):
import math

A,B,DEGREE = map(int,input().split())
 
rad = math.radians(DEGREE)
 
S = A*B*math.sin(rad)/2.0
C = math.sqrt(A*A+B*B-2*A*B*math.cos(rad))
h = 2*S/A
 
print("%.10f %.10f %.10f"%(S,A+B+C,h))

Solution (Python):
import math

a, b, C = map(float,input().split())
radian_C = math.radians(C)
sinC = math.sin(radian_C)
cosC = math.cos(radian_C)


h = b * sinC


S = a * h * 0.5


c = (a**2+b**2-(2*a*b*cosC))**0.5
L = a + b + c

print(S)
print(L)
print(h)

Solution (Python):
import math
a,b,C = map(int, input().split())
S = 0
S = 1/2*a*b*math.sin(math.radians(C))
print('{0:5f}'.format(S))
print('{0:5f}'.format(a+b+(math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(C))))))
print('{0:5f}'.format(S*2/a))

Solution (Python):
import math

a, b, C = map(float, input().split())

c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(C)))
sinC = math.sqrt(1 - math.cos(math.radians(C)) ** 2)
S = a * b * sinC / 2
L = a + b + c
h = S * 2 / a

print("{:.8f}".format(S))
print("{:.8f}".format(L))
print("{:.8f}".format(h))

Solution (Python):

import math
a, b, C = map(float, input().split())
S = 1/2 * a * b * math.sin(math.radians(C))
L = math.sqrt((a**2 + b**2 - 2*a*b*math.cos(math.radians(C)))) + a + b
h = 2 * S / a
print(S)
print(L)
print(h)

Solution (Python):
import math

pi = 3.141592653589
a, b, deg = map(float, input().split())

deg = deg*pi/180
cosdeg = math.cos(deg)
sindeg = math.sin(deg)

S = a*b*sindeg/2
L = a+b+math.sqrt(a**2+b**2-2*a*b*cosdeg)
h = b*sindeg

print(f"{S:.6f}")
print(f"{L:.6f}")
print(f"{h:.6f}")

Solution (Python):
import math

A,B,degree=map(int,input().split())
C=math.sqrt(A*A+B*B-2*A*B*math.cos(math.radians(degree)))
S=A*B*math.sin(math.radians(degree))/2
h=S*2/A
print(S)
print(A+B+C)
print(h)

Solution (Python):
import math
a,b,c = map(int, input().split())
c = c/180*math.pi
h = math.sin(c) * b
S = a * h / 2
L = a + b + abs(complex(a-math.cos(c)*b, h))
print (S, L, h)

Solution (Python):
import math

a, b, C = map(float, input().split())

h = b * math.sin(math.radians(C))
S = a * h / 2
t = a*a + b*b - 2*a*b*math.cos(math.radians(C))
c = pow(t, 1/2)
L = a + b + c

print(S)
print(L)
print(h)

Solution (Python):
import math
a,b,C = map(int,input().split())
print(a*b*math.sin(math.radians(C))/2)
print(a+b+(a**2+b**2-2*a*b*math.cos(math.radians(C)))**(1/2))
print(b*math.sin(math.radians(C)))

Solution (Python):
import math
a, b, C =[float(_) for _ in input().split()]
c = math.sqrt(math.pow(a,2)+math.pow(b,2)-2*a*b*math.cos(math.radians(C)))
L = a + b + c
h = b * math.sin(math.radians(C))
S = a * h / 2
print("%f\n%f\n%f" % (S,L,h))

Solution (Python):
import math
a, b, C = map(float, input().split())
C = math.radians(C)
c = (a ** 2 + b ** 2 - 2 * a * b * math.cos(C)) ** 0.5
S = (a * b * math.sin(C)) * 0.5
h = b * math.sin(C)
print(S, a + b + c, h, sep = '\n')

Solution (Python):
import math

a, b, c = [float(i) for i in input().split()]

c = math.radians(c)
h = math.sin(c) * b
s = a*h/2

q = math.sqrt(pow(a,2) + pow(b,2) - 2 * a * b * math.cos(c))

l = a + b + q

print(s)
print(l)
print(h)

Solution (Python):
import math
PI = 4.0 * math.atan(1.0)

a, b, c = map(int, input().split())
angle = c*PI / 180.0

S = a*b*math.sin(angle) / 2.0
d = math.sqrt(a**2 + b**2 - 2.0*a*b*math.cos(angle))
L = a + b + d
h = b*math.sin(angle)

print("{:.6f}".format(S))
print("{:.6f}".format(L))
print("{:.6f}".format(h))

Solution (Python):
import math
a,b,C=map(float,input().split())
print(f'{a*b/2*math.sin(math.radians(C)):.6f}')
print(f'{a+b+(a**2+b**2-2*a*b*math.cos(math.radians(C)))**0.5:.6f}')
print(f'{b*math.sin(math.radians(C)):.6f}')

Solution (Python):
import math
inData = [float(i) for i in input().split()]
a = inData[0]
b = inData[1]
C = math.radians(inData[2])
S = a * b * math.sin(C) / 2
c = pow(a**2 + b**2 - 2 * a * b * math.cos(C),1/2)
L = a + b + c
h = 2 * S /a
print(S)
print(L)
print(h)

Solution (Python):

import math
a, b, c = map(int, input().rstrip().split())
print("{0:.5f}".format(a*b*math.sin(math.pi*c/180)/2))
print("{0:.5f}".format(a + b + math.sqrt(a**2+b**2-2*a*b*math.cos(math.pi*c/180))))
print("{0:.5f}".format(b*math.sin(math.pi*c/180)))

Solution (Python):
import math
a,b,C = map(float,input().split())
C = math.radians(C)
sinC = math.sin(C)
cosC = math.cos(C)
h = b*sinC
d = math.sqrt(h**2 + (a-b*cosC)**2)
S = 1/2*a*b*sinC
L = a + b + d


print(S)
print(L)
print(h)

Solution (Python):
from math import cos, pi, sqrt


a, b, r = map(int, input().split())
c = sqrt(a**2 + b**2 - 2 * a * b * cos(pi*(r/180)))

l = round(a+b+c, 10)
s = round(l/2, 10)
S = round(sqrt(s * (s-a) * (s-b) * (s-c)), 10)
h = round(S / a * 2, 10)

print(S)
print(l)
print(h)

Solution (Python):
import math
a, b, c = map(float, input().split())
deg = math.radians(c)
h = b * abs(math.sin(deg))
S = 0.5 * a * h

L = math.sqrt((b * math.sin(deg))**2 + (b * math.cos(deg) - a)**2) + a + b

print(S)
print(L)
print(h)

Solution (Python):
import math
a, b, c = map(int, input().split())

S = a*b*math.sin(math.radians(c))/2
L = a+b+math.sqrt((a**2+b**2-2*a*b*math.cos(math.radians(c))))
h = 2*S/a

print(S)
print(L)
print(h)

Solution (Python):
import math

a, b, C = map(float, input().split())
C = math.radians(C)

c = (a ** 2 + b ** 2 - 2 * a * b * math.cos(C)) ** 0.5
h = b * math.sin(C)
S = 0.5 * a * h

print("{:.5f}".format(S))
print("{:.5f}".format(a + b + c))
print("{:.5f}".format(h))

Solution (Python):
import math
list = input().split()
a = float(list[0])
b = float(list[1])
C = float(list[2])

C = math.radians(C)

S = a * b * math.sin(C) / 2
c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(C))
L = a + b + c
h = 2 * S / a

print("{:.5f}".format(S))
print("{:.5f}".format(L))
print("{:.5f}".format(h))

Solution (Python):
from math import sin, cos, pi, sqrt
a,b,C = map(int,input().split())
S = a*b*sin(C*pi/180)/2
c= sqrt(a**2+b**2-2*a*b*cos(C*pi/180))
h= S*2/a
print(S)
print(a+b+c)
print(h)

Solution (Python):
import math

a, b, C = map(float, input().split())

h = b * math.sin(math.radians(C))
S = a * h * 0.5
L = (a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(C))) ** 0.5 + a + b

for i in [S, L, h]: print('%10f' % i)

Solution (Python):
import math
a, b, C = map(float, input().split())
c = math.radians(C)
print(math.sin(c) * a * b / 2, a + b + math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(c)), b * math.sin(c))

Solution (Python):
import math
a, b, x = map(float, input().split())
s = a * b * math.sin(math.radians(x)) / 2
l = a + b + math.sqrt(a * a + b * b - 2 * a * b * math.cos(math.radians(x)))
h = b * math.sin(math.radians(x))
print('%f' % s)
print('%f' % l)
print('%f' % h)

Solution (Python):
import math
a, b, c = map(int, input().split())
print(0.5*a*b*math.sin(math.radians(c)))
print(a+b+(a**2+b**2-2*a*b*math.cos(math.radians(c)))**0.5)
print(b*math.sin(math.radians(c)))

Solution (Python):
from math import sin, cos, pi
a,b,c = [float(i) for i in input().split()]
print("{:.8f}".format(0.5*a*b*sin(pi/180*c)))
print("{:.8f}".format(a+b+(a**2+b**2-2*a*b*cos(pi/180*c))**0.5))
print("{:.8f}".format(b*sin(pi/180*c)))

Solution (Python):
import math

data = input().split()
a = float(data[0])
b = float(data[1])
C = math.radians(int(data[2]))

S = a * b * math.sin(C) * 0.5
print(S)
c = math.sqrt((a**2 + b**2 - 2*a*b*math.cos(C)))
print(a + b + c)
print(S/a * 2 )

Solution (Python):
import math
a,b,c=map(int, input().split())
r=math.radians(c)
print(a*b*math.sin(r)/2)
print(a+b+(a**2+b**2-2*a*b*math.cos(r))**0.5)
print(b*math.sin(r))

Solution (Python):




import math

a,b,radi = map(int,input().split())
rad = math.radians(radi)

s = a*b*math.sin(rad)/2.0
c = a+b+math.sqrt(a*a+b*b-2*a*b*math.cos(rad))
h = 2*s/a

print("%.10f %.10f %.10f"%(s,c,h))

Solution (Python):
import sys
import math

a, b, angle = map(int, sys.stdin.read().strip().split())

c = math.sqrt(a * a + b * b - 2 * a * b * math.cos(math.radians(angle)))
circum = a + b + c

s = (a + b + c) / 2
area = math.sqrt(s * (s - a) * (s - b) * (s - c))

h = area * 2 / a

for val in (area, circum, h):
    print('{0:.8f}'.format(val))

Solution (Python):
from math import cos, sin, radians, sqrt
a, b, c = input().split()
a, b = float(a), float(b)
theta = radians(int(c))
h = b * sin(theta)
S = a * h / 2
c = sqrt(a*a + b*b - 2*a*b*cos(theta))
print(f'{S:.8f}')
print(f'{a+b+c:.8f}')
print(f'{h:.8f}')

Solution (Python):
import math
def main():
    a, b, c = (float(a) for a in input().split())
    s = a * b * math.sin(math.radians(c)) * 0.5
    l = a + b + math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(math.radians(c)))
    h = b * math.sin(math.radians(c))
    print(s)
    print(l)
    print(h)


main()

Solution (Python):

import math

a, b, C = map(float, input().split())
S =  0.5 * a * b * math.sin(C * math.pi / 180)
L = a + b + (a ** 2 + b ** 2 - 2 * a * b * math.cos(C * math.pi / 180)) ** 0.5
h = 2 * S / a

print("%f\n%f\n%f" % (S, L, h))

Solution (Python):
import math
abc=list(map(int,input().split()))
a=abc[0]
b=abc[1]
c=math.radians(abc[2])

s=1/2*a*b*math.sin(c)
l=math.sqrt(pow(a,2)+pow(b,2)-2*a*b*math.cos(c))
L=a+b+l
h=b*math.sin(c)

print(s)
print(L)
print(h)

Solution (Python):
import math

(a,b,c)=  map(int,input().split())

h = math.sin(math.radians(c)) * b
L = a + b +math.sqrt(a*a+b*b-(2*a*b*math.cos(math.radians(c))))
S = h * a / 2
print (S)
print (L)
print (h)

Solution (Python):
import math
def calculateTri(a, b, theta):
    s = a * b * math.sin(math.radians(theta)) / 2
    c = math.sqrt(a * a + b * b - 2 * a * b * math.cos(math.radians(theta)))
    l = a + b + c
    h = s * 2.0 / a
    return s, l, h

if __name__ == '__main__':
    a, b, t = map(float, input().split())
    s, l, h = calculateTri(a, b, t)
    print(' {0:.8f} '.format(s))
    print(' {0:.8f} '.format(l))
    print(' {0:.8f} '.format(h))

Solution (Python):
import math
a,b,c=map(int,input().split())
s=a*b*math.sin(math.radians(c))/2
print(s)
c_l=math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(c)))
print(a+b+c_l)
h=2*s/a
print(h)

Solution (Python):
import math

a, b, deg = map(int, input().split())

c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(deg)))

s = (a+b+c)/2

area = (s * (s - a) * (s - b) * (s - c))**0.5

h = area * 2 / a

print(area)
print(a+b+c)
print(h)

Solution (Python):
import math

a,b,s = map(float,input().split())
radian_s = math.radians(s)

print(a*b/2*math.sin(radian_s))
print((a+b)+(math.sqrt((a**2+b**2)-(a*b*2*math.cos(radian_s)))))
print(b*math.sin(radian_s))

Solution (Python):
import math
a,b,x=map(float,input().split())
x=x*math.pi/180
S=a*b*0.5*math.sin(x)
print(S)
print(a+b+math.sqrt(a**2 + b**2 -2*a*b*math.cos(x)))
print(2*S/a)

Solution (Python):
import math
num=list(map(float,input().split()))
a=num[0]
b=num[1]
C=num[2]
h=b*(math.sin(math.radians(C)))
S=a*h/2
L=a+b+(math.sqrt(b**2+a**2-(2*a*b)*(math.cos(math.radians(C)))))
print(S)
print(L)
print(h)

Solution (Python):
import math
a, b, C = map(int, input().split())
C = math.pi * C / 180
S = a * b * math.sin(C) / 2
c2 = a**2 + b**2 -2*a*b*math.cos(C)
c = math.sqrt(c2)
L = a + b + c
h = 2*S / a
print(S)
print(L)
print(h)

Solution (Python):
import math
a, b, C = map(int, input().split())

s=a*b*math.sin(math.radians(C))/2
print(s)
print(a+b+math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(C))))
print(2*s/a)

Solution (Python):
import math
a,b,c = map(float, input().split())
s = a * b * math.sin(math.radians(c)) / 2
l = math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(c)))+a+b
h = s * 2 / a

print(s)
print(l)
print(h)

Solution (Python):
from math import sin, sqrt, cos, pi
a, b, C = map(int, input().split())
C = C / 180 * pi

S = a * b * sin(C) / 2
L = a + b + sqrt(a*a + b*b - 2*a*b*cos(C))
H = S * 2 / a

print(S)
print(L)
print(H)

Solution (Python):
import math
a, b, C = map(int, input().split())
c = math.sqrt(a ** 2 + b ** 2 - a * b * 2 * math.cos(C))
S = a * b * math.sin(math.radians(C)) / 2
L = math.sqrt(a ** 2 + b ** 2 - a * b * 2 * math.cos(math.radians(C))) + a + b
h = 2 * S / a

print(S)
print(L)
print(h)

Solution (Python):
import math

a, b, C = map(int, input().split())
Crad = math.radians(C)
S = 1/2 * a * b * math.sin(Crad)
c = (a**2 + b**2 - 2*a*b*math.cos(Crad))**(1/2.0)
L = a + b + c
h = b * math.sin(Crad)

print(S)
print(L)
print(h)

Solution (Python):
import math

a,b,C=map(int,input().split())
S=float(a*b*math.sin(C/180*math.pi)/2)
c=float( math.sqrt(pow(a,2)+pow(b,2)-2*a*b*math.cos(C/180*math.pi)) )
L=a+b+c
h=S*2/a

print(S)
print(L)
print(h)

Solution (Python):
import math
A, B, R = map(int, input().split())
rad = math.radians(R)
S = A * B * math.sin(rad) / 2
C = math.sqrt(A**2 + B**2 - 2*A*B*math.cos(rad))
h = S / (0.5 *A)
print(S)
print(A+B+C)
print(h)

Solution (Python):
import math

a, b, C = [float(x) for x in input().split()]

C = math.radians(C)

S = (1/2) * a * b * math.sin(C)

L = a + b + (math.sqrt(a**2 + b**2 - 2*a*b*math.cos(C)))

h = 2 * S / a

print(S, L, h, sep = "\n")

Solution (Python):
import math

a, b, c = map(float, input().split())
c *= math.pi / 180

S = a * b * math.sin(c)/2
A = a - b * math.cos(c)
B = b * math.sin(c)

print('{:.5f}'.format(S))
print('{:.5f}'.format(math.sqrt(A*A+B*B) + a+b))
print('{:.5f}'.format(B))

Solution (Python):
import math
a, b, theta = map(int, input().split())
theta = math.radians(theta)
S = a * b * math.sin(theta) / 2
L = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(theta)) + a + b
h = b * math.sin(theta)
print("{:.4f}\n{:.4f}\n{:.4f}".format(S, L, h))

Solution (Python):
from enum import Enum
import sys
import math

BIG_NUM = 2000000000
MOD = 1000000007
EPS = 0.000000001

A,B,DEGREE = map(int,input().split())

rad = math.radians(DEGREE)

S = A*B*math.sin(rad)/2.0
C = math.sqrt(A*A+B*B-2*A*B*math.cos(rad))
h = 2*S/A

print("%.10f %.10f %.10f"%(S,A+B+C,h))

Solution (Python):
import math
values = input().split()
a = float(values[0])
b = float(values[1])
theta = float(values[2])
print("{:8f}".format(a * b * 0.5 * math.sin(theta * math.pi / 180.0)))
print("{:8f}".format(math.sqrt(a**2.0 + b**2.0 - 2.0*a*b*math.cos(theta * math.pi / 180.0)) + a + b))
print("{:8f}".format(b * math.sin(theta * math.pi / 180.0)))

Solution (Python):
import math
a,b,c = map(int,input().split())
c = math.radians(c)
s = (1 / 2) * a * b * math.sin(c)
l = a + b + math.sqrt((a**2) + (b**2) - (2 * a * b * math.cos(c)))
h = b * math.sin(c)
print("{0:.8f}".format(s))
print("{0:.8f}".format(l))
print("{0:.8f}".format(h))

Solution (Python):
import math

a, b, C = map(float, input().split())
radC = math.radians(C)

print(a * b * math.sin(radC) / 2)
print(a + b + math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(radC)))
print(b * math.sin(radC))

Solution (Python):
import math

abC = [int(x) for x in input().split()]
S = abC[0] * abC[1] * math.sin(math.radians(abC[2])) / 2
L = abC[0] + abC[1] + ((abC[0] ** 2 + abC[1] ** 2 - 2 * abC[0] * abC[1] * math.cos(math.radians(abC[2]))) ** 0.5)
h = 2 * S / abC[0]
print(" %.8f" % S)
print(" %.8f" % L)
print(" %.8f" % h)

Solution (Python):
a, b, c = list(map(int, input().split()))
from math import pi, sin, cos
print(a*b*0.5*sin(c*pi/180))
print(a+b+(a**2+b**2-2*a*b*cos(c*pi/180))**0.5)
print(b*sin(c*pi/180))

Solution (Python):
import math
a,b,C = map(float,input().split(' '))
S = a*b*math.sin(math.radians(C)) / 2.0
c = math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(C)))
h = 2*S/a
print(S)
print(a+b+c)
print(h)

Solution (Python):
import math
a,b,C = map(float, input().split())
print(a*b*math.sin(math.radians(C))/2)
print(a + b + math.sqrt(pow(a,2) + pow(b,2) -2 * a * b * math.cos(math.radians(C))))
print(b*math.sin(math.radians(C)))