I.py 117 B

123
  1. while True:
  2. a, b = map(int, input().strip().split())
  3. print('%.5f' % sum(1 / i ** 2 for i in range(a, b + 1)))