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

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

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

Solution code:
# coding: utf-8
# coding: Shift_JIS
# coding: EUC-JP
# coding: cp932
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))

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Accepted

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

Submission status: Runtime Error

Solution code:
lst=input().split()
lst=list(map(lambda i:int(i),lst))
a,b,C=lst[0],lst[1],lst[2]
S=(1/2)*a*b*math.sin(math.radians(C))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding: UTF-8
import math

A, B, DEGREE = list(map(int, input().split()))
RADIAN = math.radians(DEGREE)

C = sqrt(pow(A, 2)*pow(B, 2) - 2*A*B*math.cos(RADIAN))
S = A*B*math.sin(RADIAN)/2
H = A*math.sin(RADIAN)

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

Submission status: Runtime Error

Solution code:
from math import *
data = list(map(int,input().split()))
print("%f %f %f" %(b*cos(radians(c))*a/2,a+b+b*sin(radians(c)),b*sin(radians(c))))

Submission status: Runtime Error

Solution code:
from math import *
a,b,c = int(input().split())
print("%f %f %f" %(b*cos(radians(c))*a/2,a+b+b*sin(radians(c)),b*sin(radians(c))))

Submission status: Runtime Error

Solution code:
from math import *
a,b,c = map(int,input().split())
c = radians(c)
S = a*b*sin(c)/2
print("%f %f %f" %(S,sqrt(a*a+b*b-2*a*b*cos(c),2*S/a )))

Submission status: Runtime Error

Solution code:
from math import *
a,b,c = map(int,input().split())
c = radians(c)
S = a*b*sin(c)/2
print("%f %f %f" %(S,sqrt(a*a+b*b-2*a*b*cos(c)),2*S/a )))

Submission status: Runtime Error

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

print "%.10f" % float(a*b*math.sin(c)/2)
print "%.10f" % float(a + b + math.sqrt(a**2 + b**2)*cos(c))
print "%.10f" % float(b*math.sin(c))

Submission status: Runtime Error

Solution code:
a,b,C=map(float,raw_input().split())
rad=math.radinas(C)
c=(a**2+b**2-2*a*b*math.cos(rad))
h=b*math.sin(c)
print h*a/2
print a+b+c
print h

Submission status: Runtime Error

Solution code:
import math
a,b,C=map(float,raw_input().split())
rad=math.radinas(C)
c=(a**2+b**2-2*a*b*math.cos(rad))
h=b*math.sin(c)
print h*a/2
print a+b+c
print h

Submission status: Runtime Error

Solution code:
a,b,C=map(float,raw_input().split())
rad=math.radians(C)
c=(a**2+b**2-2*a*b*math.cos(rad))**0.5
h=b*math.sin(rad)
print h*a/2
print a+b+c
print h

Submission status: Runtime Error

Solution code:
#coding:utf-8
#1_10_B 2015.4.14

import math

a,b,C = map(int,input().split())
C = math.radian(C)
h = b * math.sin(C)
S = a * h / 2
L = a + b + math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(C))
print('{:.10f}\n{:.10f}\n{:.10f}'.format(S,L,h))

Submission status: Runtime Error

Solution code:
import math
from math import radians
from cmath import sqrt
a,b,c = map(int, raw_input().split)
s = (a * b  *  math.sin(radians(c))) /2
c = sqrt(pow(a,2) + pow(b,2) - 2*a*b*math.cos(radians(c)))
print s
print a + b +c
print s*2 /a

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math
a,b,c = map(float, raw_input().split())
cc = math.radians(c)
h = b * math.sin(cc)
S = a * h / 2
L = a + b + math.sqrt(h**2 + (a-b*math.cos(cc))**2)
print("{0:.5f}\n{1:.5f}\n{2:.5f}\n".format(S, L, h))

Submission status: Runtime Error

Solution code:
import math
a, b, C = map(float, input().split()
C_rad = math.radians(C)
c = math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(C_rad))
S = a * b * math.sin(C_rad) / 2
L = a + b + c
h = b * math.sin(C_rad)
print("{0:.6} {1:.6} {2:.6}".format(S, L,

Submission status: Runtime Error

Solution code:
import math
a, b, C = map(float, input().split()
C_rad = math.radians(C)
c = math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(C_rad))
S = a * b * math.sin(C_rad) / 2
L = a + b + c
h = b * math.sin(C_rad)
print("{0:.6} {1:.6} {2:.6}".format(S, L, h))

Submission status: Runtime Error

Solution code:
import math

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

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

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

c = sqrt(c2)

L = a + b + c

h = 2 * S / a

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

Submission status: Runtime Error

Solution code:
import math
??
len_a, len_b, deg_C = map(int,input().split(" "))
rad_C = math.radians(deg_C)
??
#area
S = (1/2) * len_a * len_b * math.sin(rad_C)
#Length
L = len_a + len_b + math.sqrt(len_a ** 2 + len_b ** 2 + 1/2 * len_a * len_b * math.cos(rad_C))
#height
h = len_b * math.sin(rad_C)
??
print("{:.5f}".format(S))
print("{:.5f}".format(L))
print("{:.5f}".format(h))

Submission status: Runtime Error

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

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

print('%.4f %.4f %.4f '% s, L, h)

Submission status: Runtime Error

Solution code:
import math
a, b, c = [float(i) for i in input().split()]
cos(math.radians(c))
print(a * b * math.sin(math.radians(c)) / 2)
print(a + b + math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(math.radians(c))))
print(b * math.sin(math.radians(c)))

Submission status: Runtime Error

Solution code:
import math
a,b,t = map(int,input().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 = h * a
print(s)
pritn(l)
print(h)

Submission status: Runtime Error

Solution code:
a,b,t = map(int,input())
import math
h = b * math.cos(math.radians(t))
s = a*h
l = a + b +math.sqrt(a**2 + b**2 -2*a*b*math.cos(math.radians(t)))
print('{} {} {}'.format(s,l,h))

Submission status: Runtime Error

Solution code:
a,b,t = map(int,input().split())
import math
h = b*math.sin(radians(t))
s = a * h
l = a + b +math.sqrt(a**2 + b**2 -2*a*b*math.cos(math.radians(t)))
print('{0.8f} {1.8f} {2.8f}'.format(s,l,h))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
import math

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

Submission status: Runtime Error

Solution code:
import math

a,b,C=map(int,input().split())
C2=math.radians(C)
sin=math.sin(C2)
cos=math.cos(C2)
S = 0.5*a*b*sin
L = a+b+(math.sqrt((a**2+b**2)-(2*a*b*cos)))
H = (a*b*sin/2)(a/2)
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(H))

Submission status: Runtime Error

Solution code:
import numpy as np
a,b,s=map(float,input().split())
s=np.radians(s)
S=(a*b*np.sin(s))/2
h=b*np.sin(s)
l=a+b+(a**2+b**2-2*a*b*np.cos(s))
print(S)
print(l)
print(h)

Submission status: Runtime Error

Solution code:
import numpy as np
a,b,s=map(float,input().split())
s=np.radians(s)
S=(a*b*np.sin(s))/2
h=b*np.sin(s)
l=a+b+(a**2+b**2-2*a*b*np.cos(s))**0.5
print(S)
print(l)
print(h)

Submission status: Runtime Error

Solution code:
import math
x1,y1,x2,y2=map(float,input().split())
x2=x2-x1
y2=y2-y1
x1,y1=0,0
dis=(x2**2+y2**2)
print(math.sqrt(dis))

Submission status: Runtime Error

Solution code:
import numpy as nu
import math

a,b,c=input().split()
a=int(a)
b=int(b)
c=int(c)
S=1/2*a*b*nu.sin(c)
L=a+b+math.sqrt(a*a+b*b-2*a*b*nu.cos(c))
H=b*nu.sin(c)
print(S)
print(L)
print(H)

Submission status: Runtime Error

Solution code:
import math
??
a, b, C = input().split()
a = float(a)
b = float(b)
C = float(C)
??
c = math.sqrt(((a*a) + (b*b) - 2*a*b*math.cos(math.radians(C))))
L = a + b + c
S = a*b*math.sin(math.radians(C))/2
h = 2*S/a
print("%.5f\n%.5f\n%.5f" % (S, L, h))

Submission status: Runtime Error

Solution code:
import math

def triangle(a, b, deg):
    result = {}
    rad = math.radians(deg)    // 余弦定理
    c = math.sqrt(a*a+b*b-(2*a*b*math.cos(rad)))
    s = (a+b+c)/2
    result['area'] = math.sqrt(s*(s-a)*(s-b)*(s-c))
    result['perimeter'] = a+b+c
    result['height'] = result['area'] * 2 / a
    return result

if __name__ == '__main__':
    a, b, deg = map(int, input().split())
    triangle = triangle(a, b, deg)
    print(triangle['area'])
    print(triangle['perimeter'])
    print(triangle['height'])

Submission status: Runtime Error

Solution code:
import math

a,b,C = map(int, raw_input())
c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C)))

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

print("%f" % S)
print("%f" % L)
print("%f" % h)

Submission status: Runtime Error

Solution code:

import math

a,b,C = map(int, raw_input())
c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C)))

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

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

Submission status: Runtime Error

Solution code:
import math

a,b,C = map(int, raw_input())
c = math.sqrt(a*a + b*b - 2*a*b*math.cos(math.radians(C)))

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

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

Submission status: Runtime Error

Solution code:
import math

a,b,C = map(int,raw_input())
c = math.sqrt(a*a+b*b-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("%f" % (S, ))
print("%f" % (L, ))
print("%f" % (h, ))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# AOJ ITP1_10_A

import math

def floatinput():
    a = input().split()
    for i in range(len(a)):
        a[i] = float(a[i])
    return a

def main():
    data = floatinput()
    a = data[0]; b = data[1]; C = data[2]
    S = a * b * 0.5 * math.cos(math.radians(C))
    c = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(math.radians(C)))
    L = a + b + c
    h = b * math.sin(math.radians(C))
    print(S); print(L): print(h)

if __name__ == "__main__":
    main()

Submission status: Runtime Error

Solution code:
import sys
import math

for line in sys.stdin:
    if len(line)>1:
        a, b, c = line.strip('\n').split()
        a, b, c = int(a), int(b), int(c)
        print a * b * math.sin(radians(c))

Submission status: Runtime Error

Solution code:
import math

a, b, c = map(float, raw_input())

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)