Giai thừa số N

View as PDF

Points: 3 (p) Time limit: 1.0s Memory limit: 256M Input: stdin Output: stdout

Bài 2: Giai thừa số N

  • Mô tả: Tính \(N! = 1 \times 2 \times 3 \times ... \times N\).
  • Yêu cầu: Nhập \(N\), tính giai thừa.
  • Dữ liệu vào: \(0 \le N \le 20\).
  • Dữ liệu ra: Một số nguyên.
  • Ví dụ: Vào 5 -> Ra 120.
  • Ràng buộc: Sử dụng kiểu dữ liệu long long.

Comments

Most recent
Loading comments...

There are no comments at the moment.