No.2607 Add One Digit
問題文最終更新日: 2024-01-09 15:48:37
English (AI translation)
This statement was translated by AI (claude-opus-5-5, effort medium) and may contain errors or differ in nuance from the original. The original statement takes precedence.
Back to the original
yukicoder contest 415
(順位表)
の他の問題:
Problem Statement
You are given a positive integer $N$. Find how many different numbers (whose leading digit is not $0$) can be obtained by performing $1$ operation of inserting a $1$-digit number at the beginning or end of $N$, or between its digits.
Input
$N$
- $1 \leq N \leq 10^9$
- $N$ does not start with $0$
- All inputs are integers
Output
Output the answer on $1$ line, followed by a newline.
Sample
Sample 1
Input
1
Output
18
Numbers such as $10,11,91$ are possible. Note that $01$ is not included.
Sample 2
Input
22
Output
27
Sample 3
Input
2024
Output
45
提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。
蜜蜂