問題一覧 > 通常問題

No.2607 Add One Digit

レベル : / 実行時間制限 : 1ケース 1.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 201
作問者 : 蜜蜂 / テスター : Mitarushi
お気に入りにしたユーザー ProblemId : 6745 / 自分の提出
問題文最終更新日: 2024-01-09 15:48:37
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もしくは右上の雲マークをクリックしてアカウントを作成してください。