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 math
a, b, c = map(int, input().split())
c = math.radians(c)
S = 1 / 2 * (a * b * math.sin(c))
c2 = math.sqrt(a*a + b*b - 2*a*b*math.cos(c))
H = a + b + c2
h = b * math.sin(c)
print(S,H,h)

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

Solution (Python):
import math
a, b, C = map(int, input().split())
C = math.radians(C)
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(C))
S = a * b * math.sin(C) / 2
print(f"{S:0.9f}")
print(f"{a+b+c:0.9f}")
print(f"{S*2/a:0.9f}")

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

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

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

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

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

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

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(int, input().split())

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

for i in (s, a+b+d, h):
    print(i)

Solution (Python):
import math
a, b, C = map(float, input().split())
S = (1/2)*a*b*math.sin(math.radians(C))
L = a + b + math.sqrt(a**2 + b**2 -2*a*b*math.cos(math.radians(C)))
h = S/((1/2)*a)
fn = lambda x: '{:10f}'.format(x)
print(f"{fn(S)} {fn(L)} {fn(h)}")

Solution (Python):


from math import *

triangle = [int(i) for i in input().rstrip().split()]
sides = [triangle[0], triangle[1]]
a = sides[0]
b = sides[1]
angle = triangle[2]

triangleArea = 0.5 * a * b * sin(radians(angle))
print(triangleArea)

otherSideSquare = a ** 2 + b ** 2 - 2 * a * b * cos(radians(angle))
otherSide = otherSideSquare ** 0.5
circumference = a + b + otherSide
print(circumference)

height = triangleArea / 0.5 / a
print(height)

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

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

a, b, C = map(float, input().split())
C = radians(C)
S = a * b * sin(C) * 0.5
h = 2.0 * S / a
c = sqrt(a ** 2 + b ** 2 - 2 * a * b * cos(C))
L = a + b + c
print("{:.10f}".format(S))
print("{:.10f}".format(L))
print("{:.10f}".format(h))

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

Solution (Python):
import sys
import math

for line in sys.stdin:
    if len(line)>1:
        a, b, r = line.strip('\n').split()
        a, b, r = float(a), float(b), math.radians(float(r))
        
        h = b * math.sin(r)
        c = (a**2 + b**2 - 2*a*b*math.cos(r))**0.5
        l = a + b + c
        s = a * h / 2
        print s
        print l
        print h

Solution (Python):
from math import radians, sin, cos

a, b, r = map(float, raw_input().split())
r = radians(r)
h = b * sin(r)
c = (a**2 + b**2 - 2*a*b*cos(r))**0.5
l = a + b + c
s = a * h / 2
print s
print l
print h

Solution (Python):
import math
e=map(float,raw_input().split())
a=e[0]
b=e[1]
C=math.radians(e[2])
c=(a**2+b**2-2*a*b*math.cos(C))**0.5
h=b*math.sin(C)
S=h*a*0.5
L=a+b+c
print S
print L
print h

Solution (Python):
from __future__ import division, print_function
from sys import stdin
from math import radians, sin, cos, sqrt
a, b, degree = (float(s) for s in stdin.readline().split())
h = b * sin(radians(degree))
s = a * h / 2.0
L = sqrt(a**2 + b**2 - 2.0*a*b*cos(radians(degree))) + a + b
print('{:.4f}\n{:.4f}\n{:.4f}'.format(s, L, h))

Solution (Python):
import math

(n,m,o) = map(float, raw_input().split())

c=math.radians(o)
cs=math.sqrt(n**2+m**2-2*n*m*math.cos(c))
h=m*math.sin(c)



S=h*n/2
L=n+m+cs
print S
print L
print h

Solution (Python):

import math
a, b, c = map(float, raw_input().split())
h = b * math.sin(math.pi*c/180)
s = a * h / 2
x = math.sqrt(h**2 + (a-b*math.sin(math.pi*(90-c)/180))**2) 
l = a + b + x

print "\n".join([str(s), str(l), str(h)])

Solution (Python):
import math

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

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

Solution (Python):
import math

a, b, t = map(int, input().strip().split())

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

Solution (Python):
import math

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

sinc = math.sin(c*math.pi/180)
cosc = math.cos(c*math.pi/180)
c = math.sqrt(a**2+b**2-2*a*b*cosc)
s = a*b*sinc/2.0

print(s)
print(a+b+c)
print(s/a*2.0)

Solution (Python):

import math

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

print(a*b*math.sin(math.radians(c))/2)

print((a**2+b**2-2*a*b*math.cos(math.radians(c)))**(1/2)+a+b)

print(a*b*math.sin(math.radians(c))/a)

Solution (Python):
import math
a, b, C = map(int, input().split())
h = b * math.sin(math.radians(C))
S = a * h * 0.5
L = a + b + math.sqrt(pow(a, 2) + pow(b, 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())
s=(a*b*math.sin(math.radians(C)))/2
c=(a**2+b**2-2*a*b*math.cos(math.radians(C)))**(1/2)
h=s*2/a
print(f'{s:4f}')
print(f'{a+b+c:4f}')
print(f'{h:4f}')

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


c=C/180*math.pi
d=math.sqrt(a**2+b**2-2*a*b*math.cos(c))
S=1/2*a*b*math.sin(c)
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(float,input().split())
C=math.radians(C)
c=math.sqrt(a*a+b*b-2.0*a*b*math.cos(C))
S=a*b*math.sin(C)/2.0
L=a+b+c
h=b*math.sin(C)
print("{:.8f} {:.8f} {:.8f}".format(S,L,h))

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

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(int,input().split())
S=a*b*math.sin(math.pi*C/180)/2
c=math.sqrt(a**2+b**2-2*a*b*math.cos(math.pi*C/180))
L=a+b+c
h=2*S/a
print('{:.4f}'.format(S))
print('{:.4f}'.format(L))
print('{:.4f}'.format(h))

Solution (Python):
import math
a,b,C = [int(i) for i in input().split()]

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

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

Solution (Python):
import math
a,b,C=map(float,input().split())
C_rad=math.pi*C/180
print("{0:.8f}".format(math.sin(C_rad)*a*b/2))
print("{0:.8f}".format(a+b+math.sqrt(a**2+b**2-2*a*b*math.cos(C_rad))))
print("{0:.8f}".format(b*math.sin(C_rad)))

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

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

Solution (Python):
import math
values=input().split()
a=float(values[0])
b=float(values[1])
C=int(values[2])
sinC=math.sin(math.radians(C))
cosC=math.cos(math.radians(C))
S=1/2*a*b*sinC
c=pow(pow(a,2)+pow(b,2)-2*a*b*cosC,0.5)
L=a+b+c
h=2*S/a
print(S,L,h)

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

print(S,L,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(int, input().split())
c = math.radians(c)
s = a * b * math.sin(c) / 2
l = (a ** 2 + b ** 2 - 2 * a * b * math.cos(c)) ** (1/2) + a + b
h = s / a * 2

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

Solution (Python):

import math
a,b,c=(int(x) for x in input().split())

c=math.radians(c)
s=0.5*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('{:.08f}'.format(s))
print('{:.08f}'.format(l))
print('{:.08f}'.format(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(int,input().split());
c = math.radians(C)
print((1/2)*a*b*math.sin(c));
print(a+b+math.sqrt(a**2+b**2-2*a*b*math.cos(c)));
print(b*math.sin(c));

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

print(f'{S:.08f}')
print(f'{L:.08f}')
print(f'{h:.08f}')

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

c=math.radians(c)
s=0.5*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('{:.08f}'.format(s))
print('{:.08f}'.format(l))
print('{:.08f}'.format(h))

Solution (Python):
import math

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

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

print(f'{S:.08f}')
print(f'{L:.08f}')
print(f'{h:.08f}')

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(int,input().split())
s=a/2*b*math.sin(math.radians(c))
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('{:.5f}\n{:.5f}\n{:.5f}'.format(s,l,h))

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

Solution (Python):
import math
a,b,C=map(int,input().split())
radC=math.radians(C)
S=a*b*math.sin(radC)*(1/2)
c=a**2+b**2-2*a*b*math.cos(radC)
L=a+b+math.sqrt(c)
h=2*S/a
list=[S,L,h]
for i in list:
    print('{:.08f}'.format(i))

Solution (Python):
import math


a, b, C = map(float, input().split())
theta = math.radians(C)
S = 0.5 * a * b * math.sin(theta)
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(theta))
h = b * math.sin(theta)
print("{:.9f}\n{:.9f}\n{:.9f}".format(S, a+b+c, h))

Solution (Python):
import math

pi=math.pi

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

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

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

Solution (Python):
import math
a, b, C = map(int, input().split())
rad = math.radians(C)
S = (a * b * math.sin(rad)) / 2
L = a + b + (a * a + b * b - 2 * a * b * math.cos(rad)) ** 0.5
h = 2 * S / a
print("%.10f %.10f %.10f" %(S, L, h))

Solution (Python):
def p(x):
  print('{0:.6f}'.format(x))
from math import sqrt,sin,cos,pi

a,b,C = map(float,input().split())
theta = pi*C/180
h,c = 0.0,0.0

if theta<=pi/2:
  h = b*sin(theta)
  x = sqrt(b*b-h*h)
  c = sqrt(h**2+(a-x)**2)

else:
  phi = theta-pi/2
  h = b*cos(phi)
  d = b*sin(phi)
  e = a*h/(a+d)
  f = sqrt(d**2+(h-e)**2)
  g = sqrt(a**2+e**2)
  c = f+g

S = a*h/2
L = a+b+c
p(S)
p(L)
p(h)

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

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

print(S,L,h)

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

Solution (Python):
import math
a , b ,C = map(int,input().split())
S = 0.5 *  a * b * math.sin(math.radians( C )) 
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("{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 = []
S += a*b*math.sin(math.radians(c))/2,
S += math.sqrt(a**2 + b**2 - 2*a*b*math.cos(math.radians(c))) + a + b,
S += 2*S[0]/a,
print(*S, sep = "\n")

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
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,deg_c = map(float,input().split())

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

print("{}\n{}\n{}".format(S,L,h))

Solution (Python):

import math
a,b,C=map(int,input().split())
S=a*b*math.sin((C*2*math.pi)/360)/2
c=math.sqrt(a**2+b**2-2*a*b*math.cos((C*2*math.pi)/360))
L=a+b+c
h=2*float(S)/a
print(str(S)+'\n'+str(L)+'\n'+str(h)+'\n')

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

Solution (Python):



import math

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

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

Solution (Python):
import math
a,b,c = map(float,input().split())
H = b * math.sin(math.radians(c))
S = (a*(b*math.sin(math.radians(c))))/2
L = a + b + ((a**2) + (b**2) -(((2*a)*b)*math.cos(math.radians(c))))**0.5 
print(float(S))
print(float(L))
print(float(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 = 2*S/a
print(S)
print(a+b+c)
print(h)

Solution (Python):

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

Solution (Python):
import math

a,b,C = (int(x) for x in 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 = b * math.sin(math.radians(C))

print(round(S,8),round(L,8),round(h,8))

Solution (Python):



import math


def main():
    a, b, C, = map(float, input().split())
    d = math.radians(C)
    h = math.sin(d) * b
    S = a * h / 2
    L = a + b + math.sqrt(a**2+b**2-2*a*b*math.cos(d))
    print(f"{S: .4f}")
    print(f"{L: .4f}")
    print(f"{h: .4f}")


if __name__ == '__main__':
    main()

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

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

Solution (Python):
import math as m

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
c=m.radians(c)
S=0.5*a*b*m.sin(c)
L=a+b+m.sqrt(a*a+b*b-2*a*b*m.cos(c))
H=b*m.sin(c)
print(S)
print(L)
print(H)

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)))
L = a + b + c
S = (a*b*math.sin(math.radians(C)))/2
h = (S*2)/a
print('{}\n{}\n{}'.format(S, L, h))

Solution (Python):
import math

a,b,C = (int(x) for x in 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 = b * math.sin(math.radians(C))

print(round(S, 8), round(L, 8), round(h, 8))

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

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

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

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

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

Solution (Python):
import math
a,b,C=map(float,input().split())
c1=math.sin(math.radians(C))
c2=math.cos(math.radians(C))
s=(1/2)*a*b*c1

d=(a*a+b*b-2*a*b*c2)**(1/2)
L=a+b+d

h=b*c1
print(s)
print(L)
print(h)

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

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

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

Solution (Python):
from math import sin, cos, pi, sqrt
a,b,d=map(float,input().split())
S = a*b*sin(d*pi/180)/2
c = sqrt(a**2+b**2-2*a*b *cos(d*pi/180))
h = 2*S/a
print(S)
print(a+b+c)
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 = ((float(x) for x in input().split()))

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

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

Solution (Python):
import math

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

pc = math.pi * c / 180
s = a * b * math.sin(pc) / 2
l = a + b + math.sqrt(pow(a, 2) + pow(b, 2) - 2 * a * b * math.cos(pc))
h = s / a * 2
print(s)
print(l)
print(h)

Solution (Python):
import math

a,b,c=(int(x) for x in input().split())
s=1/2*a*b*math.sin(c/180*math.pi)
l=math.sqrt(a**2+b**2-2*a*b*math.cos(c/180*math.pi))+a+b
h=s/a*2
print('{:.05f}'.format(s))
print('{:.05f}'.format(l))
print('{:.05f}'.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):
from math import sin,cos,radians, sqrt
a,b,C = map(float, input().split())

C = radians(C)
print('{:.08f}'.format(0.5*a*b*sin(C)))

L = a + b + sqrt(a**2 + b**2 -2*a*b*cos(C))
print('{:.08f}'.format(L))

print('{:.08f}'.format(b*sin(C)))

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

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

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

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

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

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

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

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

c=(a**2+b**2-2*a*b*math.cos(agree))**0.5
s=0.5*a*b*math.sin(agree)
l=a+b+c
h=b*math.sin(agree)

print("{0:.5f}".format(s))
print("{0:.5f}".format(l))
print("{0:.5f}".format(h))

Solution (Python):
import math

a , b , C = map(float , input() . split())
C_rad = math.pi*C/180 
print("{0:.8f}".format(math.sin(C_rad) * a * b/2))
print("{0:.8f}".format(a + b + math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(C_rad))))
print("{0:.8f}".format(b * math.sin(C_rad)))

Solution (Python):
import math
a,b,C=map(float,input().split())
s=((a*b)*math.sin(math.radians(C)))/2
S='{:.8f}'.format(s)
d=math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(C)))
L='{:.8f}'.format(a+b+d)
e=2*s/a
h='{:.8f}'.format(e)

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
cl = math.sqrt(a * a + b * b - 2 * a * b * math.cos(math.radians(c)))
L = a + b + cl
h = S*2/a

print('{:.4f}'.format(S))
print('{:.4f}'.format(L))
print('{:.4f}'.format(h))

Solution (Python):
import math
a, b, C = map(float, input().split())
cs = math.radians(C)
c = math.sqrt((a**2+b**2)-2*a*b*math.cos(cs))
h = b*math.sin(cs)
m = (a+b+c)*0.5
S = (m*(m-a)*(m-b)*(m-c))**0.5
L = a+b+c
print(f"{S:.8f}")
print(f"{L:.8f}")
print(f"{h:.8f}")

Solution (Python):
import math

a,b,c=map(int,input().split())
s=a*b*math.sin(math.radians(c))/2
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())
h = b * math.sin(math.radians(c))
c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(c)))
L = a + b + c
S = 1 / 2 * a * h
print(S)
print(L)
print(h)

Solution (Python):
import math
a,b,c=map(float,input().split())
if c == 90:
    S=(a*b/2)
    L=(math.sqrt(a**2+b**2)+a+b)
    h=(2*S/a)
else:
    S=(math.sin(math.radians(c))*a*b/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)

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

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

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

Solution (Python):
import math
a,b,C=map(int,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=2*S/a
print(S)
print(L)
print(h)

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

Solution (Python):
import math
a,b,C = [int(i) for i in input().split()]

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

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

Solution (Python):



import math
a, b, C = map(float,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,L,h, sep="\n")

Solution (Python):
import math

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

if c<90:
    e=c*math.pi/180
    S=a*b*1/2*math.sin(e)
    t=a**2+b**2-2*a*b*math.cos(e)
    r=math.sqrt(t)
    L=a+b+r
    h=b*math.sin(e)
    print('{:.08f}'.format(S))
    print('{:.08f}'.format(L))
    print('{:.08f}'.format(h))

if c==90:
    e=c*math.pi/180
    S=a*b*1/2*math.sin(e)
    t=a**2+b**2-2*a*b*math.cos(e)
    r=math.sqrt(t)
    L=a+b+r
    h=b
    print('{:.08f}'.format(S))
    print('{:.08f}'.format(L))
    print('{:.08f}'.format(h))
    
if c>90:
    e=c*math.pi/180
    d=180*math.pi/180
    f=d-e
    S=a*b*1/2*math.sin(e)
    t=a**2+b**2-2*a*b*math.cos(e)
    r=math.sqrt(t)
    L=a+b+r
    h=b*math.sin(f)
    print('{:.08f}'.format(S))
    print('{:.08f}'.format(L))
    print('{:.08f}'.format(h))

Solution (Python):
import math

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

if c<90:
    e=c*math.pi/180
    S=a*b*1/2*math.sin(e)
    t=a**2+b**2-2*a*b*math.cos(e)
    r=math.sqrt(t)
    L=a+b+r
    h=b*math.sin(e)
    print(S)
    print(L)
    print(h)

if c==90:
    e=c*math.pi/180
    S=a*b*1/2*math.sin(e)
    t=a**2+b**2-2*a*b*math.cos(e)
    r=math.sqrt(t)
    L=a+b+r
    h=b
    print(S)
    print(L)
    print(h)

if c>90:
    e=c*math.pi/180
    d=180*math.pi/180
    f=d-e
    S=a*b*1/2*math.sin(e)
    t=a**2+b**2-2*a*b*math.cos(e)
    r=math.sqrt(t)
    L=a+b+r
    h=b*math.sin(f)
    print(S)
    print(L)
    print(h)

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

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

Solution (Python):
import math
a,b,c=map(float,input().split())
C=math.radians(c)
D=math.sin(C)*a*b
S=D/2
E=a**2+b**2-2*a*b*math.cos(C)
F=math.sqrt(E)
L=a+b+F
if C<90:
    h=b*math.sin(C)
elif C==90:
    h=b
else:
    h=b*math.sin(180-C)
print(S,L,h)

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

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

S = a*b*math.sin(C*math.pi/180)/2
c = math.sqrt(a**2 + b**2 - 2*a*b*math.cos(C*math.pi/180))
h = 2*S/a
print("{:10f}".format(S))
print("{:10f}".format(a+b+c))
print("{:10f}".format(h))

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

Solution (Python):
import math
a,b,C = map(float,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 = b*math.sin(math.radians(C))
print(f"{S:.8f}")
print(f"{L:.8f}")
print(f"{h:.8f}")

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

Solution (Python):


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

import math
h = b*math.sin(math.radians(c))
cosc = math.cos(math.radians(c))

S = a*h*(1/2) 

d = math.sqrt((a-(b*cosc))**2 + h**2)

L = a + b + d

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

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

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

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

Solution (Python):
import math

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

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

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

Solution (Python):
import math as m
a,b,c=map(int,input().split())
sinc=m.sin(m.radians(c))
cosc=m.cos(m.radians(c))
h=b*sinc
d=(h**2+(a-b*cosc)**2)**(1/2)
print('{:.10f}'.format((1/2)*a*b*sinc))
print('{:.10f}'.format(b+a+d))
print('{:.10f}'.format(h))

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

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

if C==90:
    h=b
else:
    h=(2*S)/a
    
print(f'{S:10.8f}')
print(f'{L:10.8f}')
print(f'{h:10.8f}')

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

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

Solution (Python):
import math

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

Solution (Python):
import math
from decimal import Decimal, ROUND_HALF_UP


def resolve():
    a, b, C = map(int, input().split())
    x = math.radians(C)

    h = b * math.sin(x)
    S = Decimal((a * h) / 2).quantize(Decimal('0.00000001'), rounding=ROUND_HALF_UP)
    c = Decimal(math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(x))).quantize(Decimal('0.00000001'),
                                                                               rounding=ROUND_HALF_UP)
    L = Decimal(a + b + c).quantize(Decimal('0.00000001'), rounding=ROUND_HALF_UP)
    print(S, L, h, sep="\n")


resolve()

Solution (Python):
import math
A, B, C = map(int, open(0).read().split())
S = 0.5 * A * B * math.sin(math.radians(C))
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)

Solution (Python):
import math

a, b, c = [float(line) for line in input().split()]
S = 1 / 2 * a * b * math.sin(math.radians(c))
c = math.sqrt((a ** 2) + (b ** 2) - (2 * a * b * math.cos(math.radians(c))))
L = a + b + c
H = S / (a * (1 / 2))

print(S, L, H)