Đếm chữ số

View as PDF

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

Bài 1: Đếm chữ số

  • Mô tả: Đếm xem số nguyên dương \(N\) có bao nhiêu chữ số.
  • Dữ liệu vào: \(1 \le N \le 10^{18}\).
  • Dữ liệu ra: Số lượng chữ số.
  • Ví dụ: Vào 12345 -> Ra 5.
  • Ràng buộc: Dùng vòng lặp while (n > 0).

Comments

Most recent
Loading comments...

There are no comments at the moment.