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



Sample input:
4 3 90


Sample output:
6.00000000
12.00000000
3.00000000

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

Solution code:
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'))

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
import math
#余弦定理を用いる
a , b , C = map(float , input() . split())
C_rad = math.pi*C/180 #角度(入力C)を度からラジアンに変換
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)))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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}")

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
# coding: utf-8
# Your code here!

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")

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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)       #面積1/2*absinC
print(a+b+x)  #辺の長さa^2=b^2+c^2-2bccosA→周の長さa+b+c
print(2*S/a)     #高さh 面積S=1/2*a*h→h=2*S/a

Submission status: Accepted

Solution code:
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}")

Submission status: Accepted

Solution code:
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'))

Submission status: Accepted

Solution code:
#64 三角形

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)

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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))

Submission status: Accepted

Solution code:
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)))

Submission status: Accepted

Solution code:
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}')

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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()

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import math
a,b,C=map(float,input().split())
sinC=math.sin(math.radians(C))
cosC=math.cos(math.radians(C))
S=1/2*a*b*sinC
print(f'{S}')
c=math.sqrt(a*a+b*b-2*a*b*cosC)
print(f'{a+b+c}')
h=(2*S)/a
print(f'{h}')

Submission status: Accepted

Solution code:
import math

a,b,cc=map(float,input().split())
sinc=math.sin(math.radians(cc))
cosc=math.cos(math.radians(cc))
c2=a*a+b*b-2*a*b*cosc

c=math.sqrt(c2)


S=(a*b*sinc)/2
L=a+b+c
H=b*sinc


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

Submission status: Accepted

Solution code:
import math

a, b, C = map(float, input().split())
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
h = b * math.sin(math.radians(C))
print(S)
print(L)
print(h)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
import math
a,b,c=map(int,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)))**(1/2)))
print('{:.5f}'.format(b*math.sin(math.radians(c))))

Submission status: Accepted

Solution code:
import math
a,b,C=map(int,input().split())
c = math.radians(C)
x = a**2+b**2-2*a*b*math.cos(c)

S = a*b*math.sin(c)/2
L = a+b+math.sqrt(x)
h = (2*S)/a
print(f'{S:.08f}')
print(f'{L:.08f}')
print(f'{h:.08f}')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import math
a, b, C = map(float, input().split())
cc = math.sin(math.radians(C))
S = 0.5 * a * b * cc
L = a + b + math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(C)))
H = S * 2 / a
print(S)
print(L)
print(H)

Submission status: Accepted

Solution code:
import math

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

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

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

Submission status: Accepted

Solution code:
import math

buf = input().split()

a = float(buf[0])
b = float(buf[1])
C = float(buf[2])

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 = b * math.sin(math.radians(C))

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

Submission status: Accepted

Solution code:
import math
a, b, C = list(map(int, input().split(' ')))
c = math.sqrt(a**2 + b**2)
PI = math.acos(-1)
rad = C * PI / 180
h = b * math.sin(rad)
S = 1/2*a*h
L = a + b + math.sqrt(a**2 + b**2 - 2*a*b * math.cos(rad))
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(h))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
#-*-coding:utf-8-*-

import math

def main():
    a,b,c = map(int,input().split())
    area=a*(b*math.sin(math.radians(c)))/2
    print("{:.5f}".format(area))
    print("{:.5f}".format(a+b+math.sqrt(a**2+b**2-2*a*b*math.cos(math.radians(c)))))
    print("{:.5f}".format(2*area/a))

if __name__=="__main__":
    main()

Submission status: Accepted

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

Submission status: Accepted

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

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

Submission status: Accepted

Solution code:
import math
a,b,c=map(float,input().split())
C=math.sin(math.radians(c))
D=math.cos(math.radians(c))

S=(1/2)*a*b*C
k=a**2+b**2-2*a*b*D
L=k**(1/2)+a+b
h=2*S/a

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

Submission status: Accepted

Solution code:
import math

a, b, C = [int(i) for i in input().strip().split()]

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

print(S, L, h)

Submission status: Accepted

Solution code:
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")

Submission status: Accepted

Solution code:
import math

a,b,C=map(int,input().split())
C=math.radians(C)
S=a*b*math.sin(C)/2

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

h=S*2/a

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

Submission status: Accepted

Solution code:
import math

a,b,c=map(int,input().split())
if c<=90:
    print(b*math.sin(math.radians(c))*a/2)
    h=b*math.sin(math.radians(c))
    A=max(a,b)
    B=min(a,b)
    H=B*math.sin(math.radians(c))
    X=(B*B-H*H)**0.5
    C=((A-X)**2+H*H)**0.5
    print(C+a+b)
    print(h)
else:
    print(b*math.sin(math.radians(c))*a/2)
    A=a-b*math.cos(math.radians(c))
    h=b*math.sin(math.radians(c))
    x=(b*b-h*h)**0.5
    c=((A)**2+h*h)**0.5
    print(c+a+b)
    print(h)

Submission status: Accepted

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

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

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

h = b*math.sin(Cr)

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

Submission status: Accepted

Solution code:
import math
a,b,c=map(float,input().split())
sinc=math.sin(math.radians(c))
cosc=math.cos(math.radians(c))
cc=math.sqrt(a**2+b**2-cosc*2*a*b)
h=sinc*(b/1)
print('{:.8f}'.format(a*h*(1/2)))
print('{:.8f}'.format(a+b+cc))
print('{:.8f}'.format(h))

Submission status: Accepted

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

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

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

h = 2 * S / a

print(h)

Submission status: Accepted

Solution code:
import math

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

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

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

Submission status: Accepted

Solution code:
import math

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

radian = math.radians(C)
height = b * math.sin(radian)
c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(radian))
print((a*height)/2, a+b+c, height, sep='\n')

Submission status: Accepted

Solution code:
import math


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

if c == 90:
    h = b
    S = a * h / 2
    L = a + b + math.sqrt(a**2 + b**2)

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

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

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

Submission status: Accepted

Solution code:
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 = b * math.sin(math.radians(C))
print(S)
print(L)
print(h)

Submission status: Accepted

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

h = b * math.sin(math.radians(c))
S = a * h / 2
taiga = (a ** 2) + (b ** 2) -2 * a * b * math.cos(math.radians(c))
z = math.sqrt(taiga)
L = a + b + z
print(S)
print(L)
print(h)
#print("%.10f\n%.10f\n%.10f"%(S,L,h))

Submission status: Accepted

Solution code:
import math

a, b, C = [int(n) for n in input().split()]
c = (a**2+b**2-2*a*b*math.cos(math.radians(C)))**0.5
A = (360-2*C)/2
print(0.5*a*b*math.sin(math.radians(C)))
print(a+b+c)
print(b*math.sin(math.radians(C)))

Submission status: Accepted

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

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

Submission status: Accepted

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

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

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

Submission status: Accepted

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

A = ((a*b) * math.sin(math.radians(c)) * 0.5)
L = math.sqrt((a**2) + (b**2) - (2*a*b) * math.cos(math.radians(c))) + a + b
H = 2 * A / a

print("{:.8f}\n{:.8f}\n{:.8f}".format(A, L, H))

Submission status: Accepted

Solution code:
import math
if __name__ == '__main__':
    ans = input()
    a, b, C = ans.split()
    a, b, C = int(a), int(b), float(C)
    rad = math.radians(C)
    h = b * math.sin(rad)
    S = a * h / 2
    c = math.sqrt(a**2+b**2-2*a*b*math.cos(rad))
    L = a+b+c

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

Submission status: Accepted

Solution code:
import math
a, b, C = map(float, input().split())
sin_C = math.sin(math.radians(C))
cos_C = math.cos(math.radians(C))
S = 0.5 * a * b * sin_C
print(S)
c = math.sqrt(a**2 + b**2 - 2*a*b*cos_C)

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

Submission status: Accepted

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

C = math.radians(C)

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

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

Submission status: Accepted

Solution code:
import math as mt

a, b ,angle = list(map(int,input().split()))
degree = mt.radians(angle)

S = 0.5 * a * b * mt.sin(degree)
c = mt.sqrt((a**2 + b**2) - (2*a*b*mt.cos(degree)))
L = (a + b + c)

s = L / 2
s2 = s*(s-a)*(s-b)*(s-c)
s2 = mt.sqrt(s2)
s2 = 2 * s2  / a
print(S)
print(L)
print(s2)

Submission status: Accepted

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

def printing(x):
    print('{:.8f}'.format(x))
    
printing(0.5 * a * b * math.sin(math.radians(c)))
printing(a + b + math.sqrt((a ** 2) + (b ** 2) - 2 * a * b * math.cos(math.radians(c))))
printing(b * math.sin(math.radians(c)))

Submission status: Accepted

Solution code:
from math import sin, cos, radians, sqrt

a, b, c = list(map(int, input().split()))
print(a * b * sin(radians(c)) / 2)
print(a + b + sqrt((a ** 2) + (b ** 2) - (2 * b * a * cos(radians(c)))))
print(b * sin(radians(c)))

Submission status: Accepted

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

print(f"{S}\n{L}\n{H}")

Submission status: Accepted

Solution code:
# 三角形の面積 S、周の長さ L, a を底辺としたときの高さ h
import math

a, b, angle = map(int, input().split(" "))
angle_rad = math.radians(angle)
h = b * math.sin(angle_rad)
S = a * h / 2

c = (a**2 + b**2 - 2 * a * b * math.cos(angle_rad)) ** (1 / 2)

L = a + b + c

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

Submission status: Accepted

Solution code:
import math

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

Submission status: Accepted

Solution code:
import math
a,b,c=map(float,input().split())
d=math.radians(c)
s=math.sin(d)*0.5*a*b
print(format(s,'.10f'))
e=(a**2+b**2-2*a*b*math.cos(d))**0.5
print(format(e+a+b,'.10f'))
h=2*s/a
print(format(h,'.10f'))

Submission status: Accepted

Solution code:
import math
a, b, C = map(float, 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 = b*math.sin(math.radians(C))

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

Submission status: Accepted

Solution code:
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 = b*math.sin(math.radians(c))
print(S)
print(L)
print(h)

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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=s/a*2

print(s,l,h)

Submission status: Accepted

Solution code:
from math import radians, sin, cos, sqrt

a, b, c = map(int, input().split())
sin_c = sin(radians(c))
cos_c = cos(radians(c))
S =(a*b*sin_c) / 2
print(S)
print(sqrt(a**2 + b**2 - 2*a*b * cos_c) + a + b)
print((2*S) / a)

Submission status: Accepted

Solution code:
import math
a,b,c = map(float,input().split())
sin = math.sin(math.radians(c))
cos = math.cos(math.radians(c))
s = ((1/2)*a*b) * sin
print(s)
l = a+b+math.sqrt((a**2)+(b**2)-(2*a*b)*cos)
print(l)
temp = b*sin
# if c < 90:
#     temp = b*sin
# elif c == 90:
#     pass
# else:
#     pass
print(temp)

Submission status: Accepted

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

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

print((a*b*sin)/2)
print(a + b + edge)
print(b*sin)

Submission status: Accepted

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

h=b*math.sin(math.radians(C))
S=a*h*(1/2)
L=a+b+math.sqrt(pow(a,2)+pow(b,2)-2*a*b*math.cos(math.radians(C)))
print(f'{S:.5f}')
print(f'{L:.5f}')
print(f'{h:.5f}')

Submission status: Accepted

Solution code:
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)

Submission status: Accepted

Solution code:
import math

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

kr=math.radians(k)

c2=a**2+b**2-2*a*b*math.cos(kr)
c=c2**(1/2)

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

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

Submission status: Accepted

Solution code:
import math

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

#残り1辺
c = math.sqrt((a ** 2) + (b ** 2) - a * b * 2 * math.cos(math.radians(rC)))
#面積
S = (a * b) / 2 * math.sin(math.radians(rC))
#周
L = a + b + c
#高さ
H = b * math.sin(math.radians(rC))

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

Submission status: Accepted

Solution code:
import math

a, b, c = map(float, input().split())
c = math.radians(c)
h = b * math.sin(c)
s = a * h / 2
l = (b ** 2 + a ** 2 - 2 * a * b * math.cos(c)) ** 0.5 + a + b
print(s, l, h, sep='\n')

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)))**0.5+a+b
h=2*S/a
print(S)
print(L)
print(h)

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
from sys import stdin
import math

A = list(map(float, stdin.readline().split()))
a, b, c = A[0], A[1], A[2]

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

print(format(S,'.8f'))
print(format(L, '.8f'))
print(format(h, '.8f'))

Submission status: Accepted

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

Submission status: Accepted

Solution code:
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)))
L=a+b+(math.sqrt(l))
h=b*(math.sin(math.radians(c)))
print(S)
print(L)
print(h)

Submission status: Accepted

Solution code:
import math

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

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

S = a*h/2
if C <= 90:
    a1 = (b**2 - h**2)**0.5
    a2 = a - a1
    d = (a2**2 + h**2)**0.5
    L = a + b + d
else:
    a1 = (b**2 - h**2)**0.5
    a2 = a + a1
    d = (a2**2 + h**2)**0.5
    L = a + b + d


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

Submission status: Accepted

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

n = math.radians(c)

d = (a**2+b**2-2*b*a*math.cos(n))**0.5
h = b*math.sin(n)
l = a+b+d
s = a*h/2
print(s)
print(l)
print(h)