WEBSITE RETURNED, HOWEVER SUBMIT QUANTITY IS RESTRICTED PER DAY TO VERY LITTLE (UNDER JUDGE0 NEW POLICY, API PROVIDER). Therefore it is very much for you to pay attention TEST CAREFULLY CODE BEFORE SUBMIT.

Total inversion

Threads: Write a program to calculate S = 1 + 1/2 + 1/3 + … + 1/N
Input: A positive integer N.
Output: Results total S. Results rounded to 6 decimal.
For example:

input:
1
output:
1.000000

You are not logged in? Log in to Submit Now!

8 Comments

Add a Comment