Problem list
Log in
#r02771 · Online Judge > GoldOJ

Count Digits

Bronze III 2.0 s 1024 MB

Given a positive integer $n$, print how many digits it has.

Input

One integer $n$ ($1 \le n \le 10^9$).

Output

Print the number of digits of $n$.

Example 1

Input
12345
Output
5
Source
Online Judge > GoldOJ
Appears in
Not part of a ladder, contest or set yet.
Accepted 1 Submissions 1 Acceptance 100% Solvers 1

Discussion

Threads about this problem. Spoilers are collapsed; wrap hints in ||double bars||.

No discussion yet. Start a thread if something here needs explaining.

Recent submissions Open with filters
Code