游客 Signup | Login
中文 | En

3412 - 考试十八 数列求和、平均值

通过次数

0

提交次数

0

Time Limit : 1 秒 Memory Limit : 128 MB

有一个数列an=1/(2(n2+n)),求前10项的和、平均值

Input

Output

第一行打印和;第二行打印平均值


Examples

Input Format

no input needed

Output Format

0.454545
0.045455