#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
double M_PI;
int cos(double);
int /*<<< orphan*/ printf(char *, double, scalar_t__, double);
int /*<<< orphan*/ scanf(char *, double *, double *, double *);
double sin(double);
scalar_t__ sqrt(double);
int main(void) {
  double a, b, c, C, radC;
  scanf("%lf %lf %lf", &a, &b, &C);
  radC = C * M_PI / 180;
  printf("%.8lf %.8lf %.8lf", a * b * sin(radC) / 2.0,
         a + b + sqrt(a * a + b * b - 2 * a * b * cos(radC)), b * sin(radC));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeaa(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x28(%rbp),%rcx
call   1050 <scanf@plt>
movsd  -0x28(%rbp),%xmm0
mov    0x2e65(%rip),%rax
mulsd  (%rax),%xmm0
movsd  0xe79(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x68(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <sin@plt>
movaps %xmm0,%xmm1
movsd  -0x68(%rbp),%xmm0
mulsd  %xmm1,%xmm0
movsd  0xe3b(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x10(%rbp),%xmm0
addsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x10(%rbp),%xmm2
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x58(%rbp)
movsd  0xdfa(%rip),%xmm0
mulsd  -0x10(%rbp),%xmm0
mulsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x60(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1060 <cos@plt>
movsd  -0x60(%rbp),%xmm0
movsd  -0x58(%rbp),%xmm1
cvtsi2sd %eax,%xmm2
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
call   1070 <sqrt@plt>
movsd  -0x50(%rbp),%xmm0
cvtsi2sd %rax,%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%rax
mov    %rax,-0x40(%rbp)
movsd  -0x18(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x30(%rbp),%xmm0
call   1040 <sin@plt>
movsd  -0x48(%rbp),%xmm1
mov    -0x40(%rbp),%rsi
movaps %xmm0,%xmm2
movsd  -0x38(%rbp),%xmm0
mulsd  %xmm2,%xmm1
lea    0xd84(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x50,%rsp
lea    0xebc(%rip),%rdi
lea    0x28(%rsp),%rsi
lea    0x18(%rsp),%rdx
lea    0x48(%rsp),%rcx
call   1050 <scanf@plt>
movsd  0x48(%rsp),%xmm0
mov    0x2e6b(%rip),%rax
mulsd  (%rax),%xmm0
divsd  0xe77(%rip),%xmm0
movsd  %xmm0,0x20(%rsp)
movsd  0x28(%rsp),%xmm1
mulsd  0x18(%rsp),%xmm1
movsd  %xmm1,0x10(%rsp)
call   1040 <sin@plt>
mulsd  0x10(%rsp),%xmm0
mulsd  0xe54(%rip),%xmm0
movsd  %xmm0,0x10(%rsp)
movsd  0x28(%rsp),%xmm2
movsd  %xmm2,0x30(%rsp)
movsd  0x18(%rsp),%xmm1
movsd  %xmm1,0x40(%rsp)
movapd %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,0x8(%rsp)
movapd %xmm1,%xmm0
mulsd  %xmm1,%xmm0
movapd %xmm2,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
movsd  %xmm1,0x38(%rsp)
movsd  0x20(%rsp),%xmm0
call   1060 <cos@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
movsd  0x30(%rsp),%xmm1
mulsd  0xdf6(%rip),%xmm1
mulsd  0x40(%rsp),%xmm1
mulsd  %xmm0,%xmm1
addsd  0x38(%rsp),%xmm1
movapd %xmm1,%xmm0
call   1070 <sqrt@plt>
xorps  %xmm0,%xmm0
cvtsi2sd %rax,%xmm0
addsd  0x8(%rsp),%xmm0
cvttsd2si %xmm0,%rbx
movsd  0x18(%rsp),%xmm0
movsd  %xmm0,0x8(%rsp)
movsd  0x20(%rsp),%xmm0
call   1040 <sin@plt>
movsd  0x8(%rsp),%xmm1
mulsd  %xmm0,%xmm1
lea    0xdb6(%rip),%rdi
movsd  0x10(%rsp),%xmm0
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"%lf %lf %lf\00"
@M_PI = global double 0.000000e+00
@.str.1 = [18 x i8] c"%.8lf %.8lf %.8lf\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
store i32 0, i32* %1
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %2, double* %3, double* %5)
%8 = load double, double* %5
%9 = load double, double* @M_PI
%10 = fmul double %8, %9
%11 = fdiv double %10, 1.800000e+02
store double %11, double* %6
%12 = load double, double* %2
%13 = load double, double* %3
%14 = fmul double %12, %13
%15 = load double, double* %6
%16 = call double @sin(double %15)
%17 = fmul double %14, %16
%18 = fdiv double %17, 2.000000e+00
%19 = load double, double* %2
%20 = load double, double* %3
%21 = fadd double %19, %20
%22 = load double, double* %2
%23 = load double, double* %2
%24 = load double, double* %3
%25 = load double, double* %3
%26 = fmul double %24, %25
%27 = call double @llvm.fmuladd.f64(double %22, double %23, double %26)
%28 = load double, double* %2
%29 = fmul double 2.000000e+00, %28
%30 = load double, double* %3
%31 = fmul double %29, %30
%32 = load double, double* %6
%33 = call i32 @cos(double %32)
%34 = sitofp i32 %33 to double
%35 = fneg double %31
%36 = call double @llvm.fmuladd.f64(double %35, double %34, double %27)
%37 = call i64 @sqrt(double %36)
%38 = sitofp i64 %37 to double
%39 = fadd double %21, %38
%40 = fptosi double %39 to i64
%41 = load double, double* %3
%42 = load double, double* %6
%43 = call double @sin(double %42)
%44 = fmul double %41, %43
%45 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %18, i64 %40, double %44)
ret i32 0
}

LLVM IR (-O2):
@.str = [12 x i8] c"%lf %lf %lf\00"
@M_PI = global double 0.000000e+00
@.str.1 = [18 x i8] c"%.8lf %.8lf %.8lf\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = alloca double
%4 = bitcast double* %1 to i8*
%5 = bitcast double* %2 to i8*
%6 = bitcast double* %3 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), double* %1, double* %2, double* %3)
%8 = load double, double* %3
%9 = load double, double* @M_PI
%10 = fmul double %8, %9
%11 = fdiv double %10, 1.800000e+02
%12 = load double, double* %1
%13 = load double, double* %2
%14 = fmul double %12, %13
%15 = call double @sin(double %11)
%16 = fmul double %14, %15
%17 = fmul double %16, 5.000000e-01
%18 = load double, double* %1
%19 = load double, double* %2
%20 = fadd double %18, %19
%21 = fmul double %19, %19
%22 = call double @llvm.fmuladd.f64(double %18, double %18, double %21)
%23 = call i32 @cos(double %11)
%24 = sitofp i32 %23 to double
%25 = fmul double %18, -2.000000e+00
%26 = fmul double %25, %19
%27 = call double @llvm.fmuladd.f64(double %26, double %24, double %22)
%28 = call i64 @sqrt(double %27)
%29 = sitofp i64 %28 to double
%30 = fadd double %20, %29
%31 = fptosi double %30 to i64
%32 = load double, double* %2
%33 = call double @sin(double %11)
%34 = fmul double %32, %33
%35 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), double %17, i64 %31, double %34)
ret i32 0
}