AtCoder Beginner Contest 196
翻译中…
Problem Statement
翻译中…
Given is an integer $N$.
How many integers $x$ between $1$ and $N$ (inclusive) satisfy the following condition?
翻译中…
- The decimal representation (without leading zeros) of
$x$has an even number of digits, and its first and second halves are equal as strings.
翻译中…
Constraints
翻译中…
$N$is an integer.$1 ≤ N < 10^{12}$
翻译中…
Input
翻译中…
Input is given from Standard Input in the following format:
翻译中…
N
翻译中…
Output
翻译中…
Print the answer.
翻译中…
样例
Input #1
33
Output #1
3
Three numbers $11$, $22$, and $33$ satisfy the condition.
Input #2
1333
Output #2
13
For example, the decimal representation of $1313$ has four digits, and its first and second halves are both $13$, so $1313$ satisfies the condition.
Input #3
10000000
Output #3
999
题目信息
题面与样例版权归 AtCoder 及出题人所有;中文翻译由 AI 生成(CI 管线),如有出入请以原文为准。