問題一覧 > 通常問題

No.756 Champernowne Constant (1)

レベル : / AI推定難易度 : 124 / 実行時間制限 : 1ケース 2.000秒 / メモリ制限 : 512 MB / 標準ジャッジ問題
タグ : (AC するまで非表示) / 解いたユーザー数 432
作問者 : %20 / テスター : ciel
お気に入りにしたユーザー ProblemId : 1674 / 自分の提出
問題文最終更新日: 2018-11-29 15:47:36
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
Advent Calendar Contest 2018 (順位表) の他の問題:

Problem Statement

Find the digit at the $D$-th decimal place of the Champernowne constant $C_{10}$.
Here, $C_{10}$ is formed by $0.$ followed by all integers greater than or equal to $1$ (in decimal notation) concatenated in ascending order.
That is, $C_{10}=0.1234567891011121314151617\dots$.

Input

$D$

The input satisfies the following constraints.

  • $1\le D\le100$
  • $D$ is an integer.

Output

Output the digit at the $D$-th decimal place of $C_{10}$.

Sample

Sample 1
Input
1
Output
1

The digit at the $1$-st decimal place of $C_{10}$ is $1$.

Sample 2
Input
11
Output
0

The digit at the $11$-th decimal place of $C_{10}$ is $0$.

Sample 3
Input
96
Output
5

The digit at the $96$-th decimal place of $C_{10}$ is $5$.

提出するには、Twitter 、GitHub、 Googleもしくは右上の雲マークをクリックしてアカウントを作成してください。