Tính tổng S = x2 + x4 + ... + x2n

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) = x2 + x4 + x6 + ... + x2n. 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

Input

Copy
2 4

Output

Copy
340

Comments

Please read the guidelines before commenting.