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: Wrong Answer

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

h = b*math.sin(math.radians(A))
S = a*h*0.5
L = a + b + math.sqrt(pow(a, 2) + pow(b, 2) - 2*a*b*math.cos(math.radians(A)))

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

Submission status: Wrong Answer

Solution code:
lst=input().split()
a=int(lst[0])

Submission status: Wrong Answer

Solution code:
lst=input().split()
lst=list(map(lambda i:int(i),lst))
a,b=lst[0],lst[1]

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
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: Wrong Answer

Solution code:
import math
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))
h=(2/a)*S

Submission status: Wrong Answer

Solution code:
import math
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))
h=(2/a)*S
c=(a**2+b**2-2*a*b*math.cos(math.radians(C)))**(1/2)

Submission status: Wrong Answer

Solution code:
import math
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))
h=(2/a)*S
c=(a**2+b**2-2*a*b*math.cos(math.radians(C)))**(1/2)
L=a+b+c
print(S)
print(h)
print(L)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

a, b, c = map(float,input().split())
e = b*math.sin(math.radians(c))
print(a*e/2)
print(((a-(b**2-e**2)**0.5)**2+e**2)**0.5+a+b)
print(e)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

sindeg = math.sin(math.radians(deg))
S = (a*b*sindeg)//2


cosdeg = math.cos(math.radians(deg))
z = a*a + b*b - 2*a*b*cosdeg
L = a + b + math.sqrt(z)

h = b*sindeg

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

Submission status: Wrong Answer

Solution code:
import math
class Triangle(object):
    def __init__(self, a, b, C):
        self.a = a
        self.b = b
        self.C = math.radians(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))
    
    def getHeight(self):
        return(self.b * math.sin(self.C))

tri = Triangle(*[int(i) for i in input().split()])
print(tri.getArea())
print(tri.getPerimeter())
print(tri.getHeight())

Submission status: Wrong Answer

Solution code:
import math
class Triangle(object):
    def __init__(self, a, b, C):
        self.a = a
        self.b = b
        self.C = math.radians(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))
    
    def getHeight(self):
        return(self.b * math.sin(self.C))

tri = Triangle(*[float(i) for i in input().split()])
print(tri.getArea())
print(tri.getPerimeter())
print(tri.getHeight())

Submission status: Wrong Answer

Solution code:
import math
class Triangle(object):
    def __init__(self, a, b, C):
        self.a = a
        self.b = b
        self.C = math.radians(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)))
    
    def getHeight(self):
        return(self.b * math.sin(self.C))

tri = Triangle(*[int(i) for i in input().split()])
print(tri.getArea())
print(tri.getPerimeter())
print(tri.getHeight())

Submission status: Wrong Answer

Solution code:
from math import *
a,b,c = 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: Wrong Answer

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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
a,b,c = map(float,raw_input().split(' '))
S = a * b /2
L = a+b+math.sqrt(a**2+b**2)
h = math.sin(math.radians(c))*b
print S
print L
print h

Submission status: Wrong Answer

Solution code:
import math
a,b,c = map(float,raw_input().split(' '))
H = b*math.sin(math.radians(c))
S = a*H/2
A = math.sqrt(b**2-H**2)
d = math.sqrt((a-A)**2+H**2)
L = a+b+d
print S
print L
print H

Submission status: Wrong Answer

Solution code:
import math

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

distance = math.hypot(a, b)
h = float(b * math.sin(c * math.pi / 180))
s = float(a * h / 2)
l = float(a + b + distance)

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

Submission status: Wrong Answer

Solution code:
import math

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

cs = math.radians(C)

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


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

[print(i) for i in [S, L, h]]

Submission status: Wrong Answer

Solution code:
import math

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

cs = math.radians(C)

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

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

[print(i) for i in [-S, L, -h]]

Submission status: Wrong Answer

Solution code:
import math

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

cs = math.radians(C)

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

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

[print(format(i, '6f')) for i in [-S, L, -h]]

Submission status: Wrong Answer

Solution code:
import math

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

cs = math.radians(C)

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

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

[print(format(i, '6f')) for i in [-S, L, -h]]

Submission status: Wrong Answer

Solution code:
import math

a,b,c = map(int,raw_input().split())
c = math.radians(c)
s = (a*b*math.sin(c))/2
h = b*math.sin(c)
L = a+b+math.sqrt(math.pow(a,2)+math.pow(b,2)-2*a*b*math.cos(c))
print(s)
print(h)
print(L)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

L=a+b+c

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

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
import math

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

sinC = math.sin(math.radians(C))
cosC = math.cos(math.radians(C))
c = math.sqrt( a*a + b*b + 2*a*b*cosC )

print ( a * b * sinC ) / 2  # Area
print a + b + c                # Periphery
print b * sinC                 # Height

Submission status: Wrong Answer

Solution code:
import math
a,b,C = map(int,input().split())
C_rad=2.0*math.pi*C/360.0
c = math.sqrt(float(a**2 + b**2)) if C==90 else a*math.sin(C_rad)/math.cos(C_rad)
print("{0:.8f}".format(math.sin(C_rad)*a*b/2.0))
print("{0:.8f}".format(a+b+c))
print("{0:.8f}".format(b*math.sin(C_rad)))

Submission status: Wrong Answer

Solution code:
import math
a,b,C = map(float,input().split())
C_rad=math.pi*C/360
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: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
#coding: UTF-8
import sys
import math

i= sys.stdin.readline()

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

d = math.ceil(math.cos(c))
c = math.ceil(math.sin(c))

S = 0.5*a*b*c
L = math.sqrt(a**2+b**2-2*a*b*d)+a+b
h = S*2/a

print S,L,h

Submission status: Wrong Answer

Solution code:
import math
a,b,C = map(int, input().split())
print(a*b/2, a+b+(math.sqrt(a**2+b**2)), b*math.sin(C*math.pi/180))

Submission status: Wrong Answer

Solution code:
import math
a,b,C = map(int, input().split())
print(a*b/2)
print(a+b+(math.sqrt(a**2+b**2)))
print(b*math.sin(C*math.pi/180))

Submission status: Wrong Answer

Solution code:
import math
a,b,C = map(int, input().split())
print('{0:f}'.format(a*b/2))
print('{0:f}'.format(a+b+(math.sqrt(a**2+b**2))))
print('{0:f}'.format(b*math.sin(C*math.pi/180)))

Submission status: Wrong Answer

Solution code:
import math
a, b, c = map(int, input().split())
c_rad = c / 360 * math.pi
S = a * b * math.sin(c_rad) / 2
L = math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(c_rad))
h = b * math.sin(c_rad)
print("{0}\n{1}\n{2}".format(S, L, h))

Submission status: Wrong Answer

Solution code:
import math
a, b, c = map(int, input().split())
c_rad = c / 360 * 2 * math.pi
S = a * b * math.sin(c_rad) / 2
L = math.sqrt(a**2 + b**2 - 2 * a * b * math.cos(c_rad))
h = b * math.sin(c_rad)
print("{0}\n{1}\n{2}".format(S, L, h))

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
# coding:utf-8
import math

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

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

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

print('%.6f'%S)
print('%.6f'%L)
print('%.6f'%h)

Submission status: Wrong Answer

Solution code:
import math
[a,b,C] = [float(x) for x in raw_input().split()]
C = math.radians(C)
c = math.sqrt(a**2.0 + b**2.0 -2.0*a*b*math.cos(C))
L = a + b + c
S = 0.5 * a * b * math.sin(C)
h = S/a

print L,S,h

Submission status: Wrong Answer

Solution code:
import math

[a, b, C] = [float(x) for x in raw_input().split()]
C = math.radians(C)
c = math.sqrt(a ** 2.0 + b ** 2.0 - 2.0 * a * b * math.cos(C))
L = a + b + c
S = 0.5 * a * b * math.sin(C)
h = S / a

print L, S, h

Submission status: Wrong Answer

Solution code:
# coding: utf-8
import math

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

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

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

Solution code:
import math

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math

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

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(S)
print(L)
print(h)

Submission status: Wrong Answer

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 = math.sqrt(c2)

L = a + b + c

h = 2 * S / a

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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(str(S))
print(str(L))
print(str(h))

Submission status: Wrong Answer

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: Wrong Answer

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}\n{:.5f}\n{:.5f}".format(S,L,h))

Submission status: Wrong Answer

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("{:.6f}\n{:.6f}\n{:.6f}".format(S,L,h))

Submission status: Wrong Answer

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("{:.10f}\n{:.10f}\n{:.10f}".format(S,L,h))

Submission status: Wrong Answer

Solution code:
import math
a,b,C = (float(i) for i in input().split())
S = 0.5*a*b*math.sin(C)
print(S)
#????????????????????????2????????????2??????2????????????cos??£???
L = a+b+math.sqrt(a**2+b**2-2*a*b*math.cos(C))
print(L)
H = b*math.sin(C)
print(H)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

import math
import sys


def calculate_area(side_a, side_b, angle_c):
    return (side_a*side_b*math.sin(angle_c)) / 2


def calculate_perimeter(side_a, side_b, angle_c):
    side_c = math.sqrt(side_a**2 + side_b**2
                       - 2*side_a*side_b*math.cos(angle_c))
    return side_a + side_b + side_c


def calculate_height_from_side_a(side_a, area):
    return (area*2)/side_a


def main():
    nums = [float(num) for num in sys.stdin.readline().split()]

    area = calculate_area(nums[0], nums[1], nums[2])
    perimeter = calculate_perimeter(nums[0], nums[1], nums[2])
    height_from_side_a = calculate_height_from_side_a(nums[0], area)

    print(area)
    print(perimeter)
    print(height_from_side_a)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
import math
from decimal import Decimal

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

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

print(S,L,h)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
import math

def sqroot(n):
    x = 1
    for i in range(100):
        x = (x + n/x)/2
    return x

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

c = sqroot((a*a) + (b*b) - 2*a*b*math.cos(C/57.2958))
L = a + b + c
S = a*b*math.sin(C/57.2958)/2
h = 2*S/a
print("%.5f\n%.5f\n%.5f" % (S, L, h))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
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(C/57.2958)))
L = a + b + c
S = a*b*math.sin(C/57.2958)/2
h = 2*S/a
print("%.5f\n%.5f\n%.5f" % (S, L, h))

Submission status: Wrong Answer

Solution code:
import math

a, b, theta = map(int, raw_input().split(" ") )

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

L = a + b + c

n = 0.5*(a + b + c)
S = math.sqrt( n*(n-a)*(n-b)*(n-c) )

h = 2*S/a

print S, L, h

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
s = input().split(" ")
a = round(float(s[0]),5)
b = round(float(s[1]),5)
c = round(float(s[2]),5)
d = round(math.sqrt(a**2 + b**2 - 2*a*b*(round(math.cos(math.radians(c)),5))),5)
L = a + b + d
S = round(b * a * (round(math.sin(math.radians(c)),5)) / 2, 5)
h = round(S * 2 / a, 5)
print(S)
print(L)
print(h)

Submission status: Wrong Answer

Solution code:
import math
a,b,c=map(int,input().split())
C=c/360
S=(a*b*math.sin(C))/2
L=a+b+(a**2+b**2-2*a*b*math.sin(C))**0.5
h=b*math.sin(C)
print("%.5f\n%.5f\n%.5f\n"%(S,L,h))

Submission status: Wrong Answer

Solution code:
import math
a=[float(i)for i in input().split()]
if a[2]>90.0:
    h=math.sin(180-a[2])*a[1]
    L=math.sqrt(a[0]*a[0]+a[1]*a[1])+a[0]+a[1]
elif a[2]<90.0:
    h=math.sin(a[2])*a[1]
    L=h+a[0]+a[1]
else:
    h=a[1]
    L=math.sqrt(a[0]*a[0]+a[1]*a[1])+a[0]+a[1]
S=a[0]*h/2
print("%.5f"%(S))
print("%.5f"%(L))
print("%.5f"%(h))

Submission status: Wrong Answer

Solution code:
import math
a=[float(i)for i in input().split()]
a[2]=a[2]*math.pi/180
if a[2]>90.0:
    h=math.sin(180-a[2])*a[1]
    L=math.sqrt(a[0]*a[0]+a[1]*a[1])+a[0]+a[1]
elif a[2]<90.0:
    h=math.sin(a[2])*a[1]
    n=math.sqrt(a[1]*a[1]-h*h)
    L=a[0]+a[1]+math.sqrt(h*h+(a[0]-n)*(a[0]-n))
else:
    h=a[1]
    L=math.sqrt(a[0]*a[0]+a[1]*a[1])+a[0]+a[1]
S=a[0]*h/2
print("%.5f"%(S))
print("%.5f"%(L))
print("%.5f"%(h))

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
????§???¢
????§???¢????????? a, b ??¨?????????????§? C ?????????
??????????§???¢?????¢??? S?????¨????????? L, 
a ???????????¨????????¨???????????? h 
????±???????????????°?????????????????????????????????
"""
import math
a, b, C = map(float,input().strip().split())
theta = math.radians(C) # ?????????????????¢??????
h = math.sin(theta) * b
S = a * h / 2
a1 = math.cos(theta) * b
a2 = a - a1
x = math.sqrt((h * h) + (a2 * a2))
L = a + h + x

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

Submission status: Wrong Answer

Solution code:
import math
a,b,C = [float(s) for s in input().split(' ')]

C = math.radians(C)

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

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

Submission status: Wrong Answer

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

S =(a*b*sin) / 2
L = math.sqrt((a**2) + (b**2) - (2*a*b*cos))
#L**2 = (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: Wrong Answer

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 = b/sin
print("{0:.8f}".format(S))
print("{0:.8f}".format(L))
print("{0:.8f}".format(H))

Submission status: Wrong Answer

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 = b/sin
print(S)
print(L)
print(H)

Submission status: Wrong Answer

Solution code:
from math import sin, cos, radians

a, b, C = (int(x) for x in input().split())
s = a * b * sin(radians(C)) * 0.5
l = (a **2 + b**2 - a * b * cos(radians(C))) ** 0.5 + a + b
h = s * 2 / a
print(s)
print(l)
print(h)

Submission status: Wrong Answer

Solution code:
from math import sin, cos, radians

a, b, C = (float(x) for x in input().split())
s = a * b * sin(radians(C)) * 0.5
l = (a **2 + b**2 - a * b * cos(radians(C))) ** 0.5 + a + b
h = s * 2 / a
print(s)
print(l)
print(h)

Submission status: Wrong Answer

Solution code:
import math
a,b,c=map(float,input().split())
c=math.radians(c)
h=b*math.sin(c)
s=a*h/2
d=a/math.tan(s)
l=2*s
print(s,l,h)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
from math import cos, sin

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

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

Submission status: Wrong Answer

Solution code:
import math
a,b,c=map(int, input().split())
print(0.5*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))

Submission status: Wrong Answer

Solution code:
from math import sin, cos, sqrt, radians
a, b, C = map(int, input().split())
C = radians(C)
S = .5 * a * b * sin(C)
h = b * sin(C)
L = a + b + sqrt(a ** 2 + b ** 2 + 2 * a * b * cos(C))
print(S)
print(L)
print(h)

Submission status: Wrong Answer

Solution code:
import math


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

    # ????§???¢????????? 0 < C < 180
    rad = math.pi * C / 180
    sin = math.sin(rad)
    h = b * sin
    S = a * h / 2

    a_ = a - math.cos(rad)
    len_d = math.sqrt(a_ ** 2 + h ** 2)

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

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math


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

    # ????§???¢????????? 0 < C < 180
    rad = math.pi * C / 180
    sin = math.sin(rad)
    h = b * sin
    S = a * h / 2

    a_ = a - math.cos(rad)
    len_d = math.sqrt(a_ ** 2 + h ** 2)

    print("{:.8f}".format(S))
    print("{:.8f}".format(a + b + len_d))
    print("{:.8f}".format(h))

if __name__ == "__main__":
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
import math
data = list(map(int, input().split()))
a, b, theta = data[0], data[1], math.radians(data[2])
data[1] = math.sqrt(a ** 2 + b ** 2 - 2 * a * b * math.cos(theta)) + a + b
data[2] = a * math.sin(theta)
data[0] = b * data[2] / 2
for i in range(3):
    print(data[i])

Submission status: Wrong Answer

Solution code:
import math
data = list(map(float, input().split()))
a, b, theta = data[0], data[1], math.radians(data[2])
data[1] = math.sqrt(a**2+b**2-2*a*b* math.cos(theta)) + a + b
data[2] = a * math.sin(theta)
data[0] = b * data[2] / 2
for i in range(3):
    print(data[i])

Submission status: Wrong Answer

Solution code:
import math

data = list(map(float, input().split()))
a, b, theta = data[0], data[1], math.radians(data[2])
length = math.sqrt(a**2+b**2-2*a*b*math.cos(theta)) + a + b
height = a * math.sin(theta)
area = b * height / 2
data_o = [area, length, height]
for i in range(3):
    print(data_o[i])

Submission status: Wrong Answer

Solution code:
import math
data = list(map(float, input().split()))
a, b, theta = data[0], data[1], data[2]/180*math.pi
data[1] = (a**2+b**2-2*a*b*math.cos(theta)) ** 0.5 + a + b
data[2] = a * math.sin(theta)
data[0] = b * data[2] / 2
for i in range(3):
    print(data[i])

Submission status: Wrong Answer

Solution code:
#!/usr/bin/python3
# -*- coding: utf-8 -*-

import sys
import math

a, b, c = map(float, sys.stdin.readline().split())

height = abs(b * math.sin(c*math.pi/180))
pos_x = b * math.cos(c*math.pi/180) + a
edge_x = (height**2 + pos_x**2) ** 0.5

print(round(a * height / 2, 6))
print(round(a + b + edge_x, 6))
print(round(height, 6))

Submission status: Wrong Answer

Solution code:
# Starting here
import math

a,b,ang=map(float,raw_input().split())

c=math.sqrt(pow(a,2)+pow(b,2))

s=(a+b+c)/2

area=math.sqrt(s*(s-a)*(s-b)*(s-c))
print area
print a+b+c
print min([a,b,c])

Submission status: Wrong Answer

Solution code:
# Starting here
import math

def Sin(n):
    return round(math.sin(math.radians(n)),2)

def Cos(n):
    return round(math.cos(math.radians(n)),2)

a,b,ang=map(float,raw_input().split())
A=a*a
B=b*b
area=(0.5*a*b*Sin(ang))
C=A+B-(2*a*b*(Cos(ang)))
c=float(math.sqrt(C))
s=a+b+c
print area
print s
print (area*2)/a

Submission status: Wrong Answer

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)))
    result['area'] = (a+b+c) / 2
    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: Wrong Answer

Solution code:
import math
alen, blen, cang = map(float, input().split())
h = math.sin(math.radians(cang)) * blen
#print(h)
S = 0.5 * alen * h
L = alen + blen + math.sqrt((alen - math.sqrt(blen**2.0 - h**2.0)) ** 2.0 + h**2.0)
print(S)
print(L)
print(h)

Submission status: Wrong Answer

Solution code:
#coding: utf-8
import math

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

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

Submission status: Wrong Answer

Solution code:
#coding: utf-8
import math

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

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

Submission status: Wrong Answer

Solution code:
import math
a, b, C = map(float, input().split())
print(C)
rad = math.radians(C)
h = b * math.sin(rad)
c = h / math.cos(rad) if C != 90.0 else math.sqrt(a ** 2 + b ** 2)
print("{0:.8f}".format(a * h / 2))
print("{0:.8f}".format(a + b + c))
print("{0:.8f}".format(h))

Submission status: Wrong Answer

Solution code:
import math
a, b, C = map(float, input().split())
print(C)
rad = math.radians(C)
h = b * math.sin(rad)
c = h / math.cos(rad) if C != 90.0 else math.sqrt(a ** 2 + b ** 2)
print(a * h / 2)
print(a + b + c)
print(h)

Submission status: Wrong Answer

Solution code:
import math
a, b, C = map(float, input().split())
rad = math.radians(C)
h = b * math.sin(rad)
c = h / math.cos(rad) if C != 90.0 else math.sqrt(a ** 2 + b ** 2)
print(a * h / 2)
print(a + b + c)
print(h)

Submission status: Wrong Answer

Solution code:
import math
a,b,c = [int(x) for x in 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 = 2 * s / a
print('{:.12f},{:.12f},{:.12f}'.format(s,l,h))

Submission status: Wrong Answer

Solution code:
import math
a,b,c=map(int,input().split())
sinc=round(math.sin(math.radians(c)))
cosc=round(math.cos(math.radians(c)))
print(sinc,cosc)
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: Wrong Answer

Solution code:
import math
a,b,c=map(int,input().split())
sinc=round(math.sin(math.radians(c)))
cosc=round(math.cos(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: Wrong Answer

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: Wrong Answer

Solution code:
import math
a, b, c = map(int, input().split())
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)

Submission status: Wrong Answer

Solution code:
import math
a, b, C = map(int, input().split())
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}")