Tính tổng S = x + x21+2 +...+ xn1+2+...+n

View as PDF

Submit solution

Points: 100.00
Time limit: 1.0s
Memory limit: 100M
Input: stdin
Output: stdout

Author:
Problem type
Allowed languages
C, C++, GAS64, Pascal, Perl, PHP, Python, Sed, TCL, Text

Tính S(x,n) = x + x21+2 + x31+2+3 + … + xn1+2+3+...+n. Với x, n là số nguyên dương cho trước.

  • Đầu vào là 2 số x, n
  • Đầu ra là kết quả S

Lưu ý: Giá trị S chỉ làm tròn còn 2 số thập phân

Input

Copy
3

Output

Copy
1.50

Comments

Please read the guidelines before commenting.



  • 0
    lonelywolf  commented 2:08:24 pm, 30/04/2023

    input de bai xam cu


  • 0
    ngohuytin007  commented 7:29:17 am, 29/08/2022

    Input có vấn đề đk ạ?


    • 0
      maingocnhat  commented 7:07:13 am, 26/09/2022

      tự sinh test ik :))))