Submit solution
Points:
0.10
Time limit:
1.5s
Memory limit:
64M
Input:
stdin
Output:
stdout
Authors:
Problem type
Mô tả vấn đề
Nhập một số nguyên dương N. Tính :
S1 = (1+2+3+...+n )/ n
S2 = 1.2.3 + 2.3.4 + 3.4.5 +....+ n(n+1)(n+2)
Input
Nhập số nguyên dương n (n ≤ 100)
Output
In ra S1, S2
Note: S1 làm tròn 1 chữ số thập phân
Sample Input 1
6
Sample Output 1
3.5 756
Comments