#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *, double);
scalar_t__ scanf(char *, int *, ...);
int main() {
  int i, j, k, u, n, m, a, b;
  while (scanf("%d", &n) != EOF) {
    for (m = 1; m <= n; m++) {
      scanf("%d %d %d", &a, &b, &k);
      printf("%.3lf\n", 1.0 * b / (1.0 * (a + b)));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed8(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1040 <scanf@plt>
mov    0x2ea0(%rip),%rcx
cmp    (%rcx),%rax
je     11c8 <main+0xa8>
movl   $0x1,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     11c3 <main+0xa3>
lea    0xe9d(%rip),%rdi
lea    -0x20(%rbp),%rsi
lea    -0x24(%rbp),%rdx
lea    -0x10(%rbp),%rcx
mov    $0x0,%al
call   1040 <scanf@plt>
cvtsi2sdl -0x24(%rbp),%xmm1
movsd  0xe75(%rip),%xmm0
mulsd  %xmm1,%xmm0
mov    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
cvtsi2sd %eax,%xmm2
movsd  0xe5f(%rip),%xmm1
mulsd  %xmm2,%xmm1
divsd  %xmm1,%xmm0
lea    0xe61(%rip),%rdi
call   1030 <printf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1158 <main+0x38>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xed1(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x2ea0(%rip),%rcx
cmp    (%rcx),%rax
jne    115e <main+0x3e>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xe9b(%rip),%r12
lea    0x10(%rsp),%r13
lea    0xc(%rsp),%rbx
lea    0x14(%rsp),%rbp
lea    0xe8e(%rip),%r14
jmp    119f <main+0x7f>
nopl   (%rax)
lea    0xe7f(%rip),%rdi
lea    0x8(%rsp),%rsi
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0x2e4e(%rip),%rcx
cmp    (%rcx),%rax
je     114d <main+0x2d>
cmpl   $0x0,0x8(%rsp)
jle    1180 <main+0x60>
xor    %r15d,%r15d
nopl   0x0(%rax)
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
mov    %rbp,%rcx
xor    %eax,%eax
call   1040 <scanf@plt>
mov    0xc(%rsp),%eax
xorps  %xmm0,%xmm0
cvtsi2sd %eax,%xmm0
add    0x10(%rsp),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
add    $0x1,%r15d
cmp    0x8(%rsp),%r15d
jl     11b0 <main+0x90>
jmp    1180 <main+0x60>

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [9 x i8] c"%d %d %d\00"
@.str.2 = [7 x i8] c"%.3lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 0, i32* %1
br label %10
10: ; preds = %34, %0
%11 = call i64 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %6)
%12 = load i64, i64* @EOF
%13 = icmp ne i64 %11, %12
br i1 %13, label %14, label %35
14: ; preds = %10
store i32 1, i32* %7
br label %15
15: ; preds = %31, %14
%16 = load i32, i32* %7
%17 = load i32, i32* %6
%18 = icmp sle i32 %16, %17
br i1 %18, label %19, label %34
19: ; preds = %15
%20 = call i64 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %8, i32* %9, i32* %4)
%21 = load i32, i32* %9
%22 = sitofp i32 %21 to double
%23 = fmul double 1.000000e+00, %22
%24 = load i32, i32* %8
%25 = load i32, i32* %9
%26 = add nsw i32 %24, %25
%27 = sitofp i32 %26 to double
%28 = fmul double 1.000000e+00, %27
%29 = fdiv double %23, %28
%30 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %29)
br label %31
31: ; preds = %19
%32 = load i32, i32* %7
%33 = add nsw i32 %32, 1
store i32 %33, i32* %7
br label %15
34: ; preds = %15
br label %10
35: ; preds = %10
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@EOF = global i64 0
@.str.1 = [9 x i8] c"%d %d %d\00"
@.str.2 = [7 x i8] c"%.3lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %1 to i8*
%6 = bitcast i32* %2 to i8*
%7 = bitcast i32* %3 to i8*
%8 = bitcast i32* %4 to i8*
%9 = call i64 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%10 = load i64, i64* @EOF
%11 = icmp eq i64 %9, %10
br i1 %11, label %32, label %16
12: ; preds = %19, %16
%13 = call i64 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %2)
%14 = load i64, i64* @EOF
%15 = icmp eq i64 %13, %14
br i1 %15, label %32, label %16
16: ; preds = %0, %12
%17 = load i32, i32* %2
%18 = icmp slt i32 %17, 1
br i1 %18, label %12, label %19
19: ; preds = %16, %19
%20 = phi i32 [ %29, %19 ], [ 1, %16 ]
%21 = call i64 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32* %3, i32* %4, i32* %1)
%22 = load i32, i32* %4
%23 = sitofp i32 %22 to double
%24 = load i32, i32* %3
%25 = add nsw i32 %24, %22
%26 = sitofp i32 %25 to double
%27 = fdiv double %23, %26
%28 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), double %27)
%29 = add nuw nsw i32 %20, 1
%30 = load i32, i32* %2
%31 = icmp slt i32 %20, %30
br i1 %31, label %19, label %12
32: ; preds = %12, %0
ret i32 0
}