#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 */
int /*<<< orphan*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double n, m, k, result = 0;
  scanf("%lf%lf", &n, &m);
  for (k = n; k <= m; k = k + 1) {
    result += 1 / (k * k);
  }
  printf("%.5lf\n", result);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
lea    0xeca(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
ucomisd %xmm1,%xmm0
jb     11a0 <main+0x80>
movsd  -0x20(%rbp),%xmm1
mulsd  -0x20(%rbp),%xmm1
movsd  0xe85(%rip),%xmm0
divsd  %xmm1,%xmm0
addsd  -0x28(%rbp),%xmm0
movsd  %xmm0,-0x28(%rbp)
movsd  0xe6f(%rip),%xmm0
addsd  -0x20(%rbp),%xmm0
movsd  %xmm0,-0x20(%rbp)
jmp    1155 <main+0x35>
movsd  -0x28(%rbp),%xmm0
lea    0xe63(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x18,%rsp
lea    0xedd(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x10(%rsp),%xmm1
movsd  0x8(%rsp),%xmm2
xorpd  %xmm0,%xmm0
ucomisd %xmm1,%xmm2
jb     117e <main+0x5e>
xorpd  %xmm0,%xmm0
movsd  0xea4(%rip),%xmm3
nopl   0x0(%rax)
movapd %xmm1,%xmm4
mulsd  %xmm1,%xmm4
movapd %xmm3,%xmm5
divsd  %xmm4,%xmm5
addsd  %xmm5,%xmm0
addsd  %xmm3,%xmm1
ucomisd %xmm1,%xmm2
jae    1160 <main+0x40>
lea    0xe8a(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
ret

LLVM IR (-O0):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [7 x i8] c"%.5lf\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
store double 0.000000e+00, double* %5
%6 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%7 = load double, double* %2
store double %7, double* %4
br label %8
8: ; preds = %19, %0
%9 = load double, double* %4
%10 = load double, double* %3
%11 = fcmp ole double %9, %10
br i1 %11, label %12, label %22
12: ; preds = %8
%13 = load double, double* %4
%14 = load double, double* %4
%15 = fmul double %13, %14
%16 = fdiv double 1.000000e+00, %15
%17 = load double, double* %5
%18 = fadd double %17, %16
store double %18, double* %5
br label %19
19: ; preds = %12
%20 = load double, double* %4
%21 = fadd double %20, 1.000000e+00
store double %21, double* %4
br label %8
22: ; preds = %8
%23 = load double, double* %5
%24 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %23)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"%lf%lf\00"
@.str.1 = [7 x i8] c"%.5lf\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = load double, double* %2
%8 = fcmp ugt double %6, %7
br i1 %8, label %17, label %9
9: ; preds = %0, %9
%10 = phi double [ %14, %9 ], [ 0.000000e+00, %0 ]
%11 = phi double [ %15, %9 ], [ %6, %0 ]
%12 = fmul double %11, %11
%13 = fdiv double 1.000000e+00, %12
%14 = fadd double %10, %13
%15 = fadd double %11, 1.000000e+00
%16 = fcmp ugt double %15, %7
br i1 %16, label %17, label %9
17: ; preds = %9, %0
%18 = phi double [ 0.000000e+00, %0 ], [ %14, %9 ]
%19 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0), double %18)
ret i32 0
}