We are given two sides a and b and the angle C between them. We need to compute:
Area S = 0.5 * a * b * sin(C) (C is in degrees? The input says "the angle C are given in integers." Probably in degrees. Yes typical problem from AIZU or similar: "Given two sides and the included angle, compute area, perimeter, height from side a". C is in degrees. So we need to compute sin(C) with radians.
Perimeter L = a + b + c, where c is the third side computed using law of cosines: c = sqrt(a^2 + b^2 - 2ab*cos(C)).
Height h: with side a as base, area = 0.5 * a * h => h = 2S / a.
We need to print S, L, h each on separate lines? The example shows output:
6.00000000
12.00000000
3.00000000
But the problem statement says: "Print S, L and h in a line respectively." However example shows each on separate line? Let's check: The example input "4 3 90" yields output:
6.00000000
12.00000000
3.00000000
That is three lines. But the description says "in a line" could be misinterpretation. Probably each value on its own line? Actually "Print S, L and h in a line respectively." might mean print them in one line separated by spaces? But the example shows each on separate line. Let's examine: Usually AIZU problems (like ITP1) often require printing each result on a separate line. But let's check the exact phrasing: "Print S, L and h in a line respectively." Could be a translation error. The example shows them on separate lines. So we should output each on a new line.
The output format: The example shows each with 8 decimal places? They have 8 digits after decimal: 6.00000000, 12.00000000, 3.00000000. But the problem states "The output should not contain an absolute error greater than 10-4." So we can output with appropriate precision, maybe using default formatting of Python's print with something like '{:.8f}'. However they may expect 8 decimal places as in example. Usually they accept any format as long as error is small. But we can output with 10 decimal places or using default representation. To be safe, output with 8 decimal places as example.
Thus algorithm:
Read three numbers: a, b, C (int? Possibly float? It says integers. So input like "4 3 90". So parse as float? But they are integer values; but we need to use in calculations, so float is fine.
Compute C_rad = C * pi / 180.
Compute S = 0.5 * a * b * sin(C_rad)
Compute c = sqrt(aa + bb - 2ab*cos(C_rad))
Compute L = a + b + c
Compute h = 2*S / a
Print each on new line with e.g. format '{:.8f}'. Or using print with appropriate formatting.
Edge cases: C could be 0 or 180? Possibly but valid triangle? Typically 0 < C < 180. But we can handle.
Now produce code in Python.
We'll import math.
Implementation:
import math
def main():
import sys
data = sys.stdin.read().strip().split()
if not data:
return
a, b, C = map(float, data) # though they are integers, convert to float
rad = math.radians(C)
S = 0.5 * a * b * math.sin(rad)
c = math.sqrt(aa + bb - 2abmath.cos(rad))
L = a + b + c
h = 2S / a
# print with 8 decimal places
print("{:.8f}".format(S))
print("{:.8f}".format(L))
print("{:.8f}".format(h))
if name == "main":
main()
That should solve.
But the problem might require that output be in one line? Let's double-check the problem statement: "Print S, L and h in a line respectively." Could be interpreted as "print S, L, and h, each on its own line". Actually "in a line respectively" is odd. Perhaps they mean "print S, L, and h each on a separate line"? The example shows three lines. So it's each on new line.
Thus final answer: code as above.
Now produce final response.
```python
import math
import sys
def main() -> None:
data = sys.stdin.read().strip().split()
if not data:
return
a, b, C = map(float, data) # sides and angle (C in degrees)
rad = math.radians(C) # convert to radians
code
# area
S = 0.5 * a * b * math.sin(rad)
# third side by law of cosines
c = math.sqrt(a * a + b * b - 2 * a * b * math.cos(rad))
# perimeter
L = a + b + c
# height on side a
h = 2 * S / a
# output with 8 decimal places (error < 1e-4)
print("{:.8f}".format(S))
print("{:.8f}".format(L))
print("{:.8f}".format(h))