PHƯỚC HƯNG OJ · THỬ THÁCH THUẬT TOÁN
#CCBCHBA0000114. S Sequence
HỌC THEO LỘ TRÌNH
1 lộ trìnhBài tập thuộc lộ trình
Mục lục đề ⌄
Đang đọc
S Sequence
S Sequence
Source: beecrowd
Version: Phuoc Hung OJ Extended
Problem Statement
Compute and print the sum rounded to exactly two digits after the decimal point.
Input
There is no input.
Output
Print the value with exactly two decimal places.
Subtasks
-
Subtask 1 (20%): No input; the same empty input is used for scoring groups.
-
Subtask 2 (30%): No input; the same empty input is used for scoring groups.
-
Subtask 3 (50%): No input; the same empty input is used for scoring groups.
Examples
Example 1
Input:
Output:
5.19
Explanation:
Add the real-valued fractions 1/i for i from 1 through 100, then format to two decimals.