Chuỗi hình học

View as PDF



Author:
Problem types
Allowed languages
C++
Points: 8 (p) Time limit: 1.0s Memory limit: 1G Input: chuoihinhhoc.inp Output: chuoihinhhoc.out

Lưu ý

Nhập dữ liệu từ CHUOIHINHHOC.INP và xuất dữ liệu ra CHUOIHINHHOC.OUT.

Ràng buộc

  • \(30\%\) số test tương ứng với \(30\%\) số điểm có \(n\leq 10^3\).
  • \(30\%\) số test tương ứng với \(30\%\) số điểm có \(n \leq 10^6\)
  • \(40\%\) số test tương ứng với \(40\%\) số điểm không có ràng buộc gì thêm.
Sample
Input
3 3
Output
40

Comments

There are no comments at the moment.