| 시간 제한 | 메모리 제한 | 제출 | 정답 | 맞힌 사람 | 정답 비율 |
|---|---|---|---|---|---|
| 1 초 (추가 시간 없음) | 2048 MB | 977 | 716 | 653 | 73.453% |
The $k^{\text{th}}$ Champernowne word is obtained by writing down the first $k$ positive integers and concatenating them together. For example, the 10ドル^{\text{th}}$ Champernowne word is 12345678910ドル$.
Given a positive integer $n,ドル determine if it is a Champernowne word, and if so, which word.
The first line contains a single integer, $n$ (1ドル \le n \le 10^9$). $n$ will not have leading zeroes.
If $n$ is the $k^{\text{th}}$ Champernowne word, output $k$. Otherwise, output $-1$.
123456789
9
1000000000
-1
11
-1
1324
-1
ICPC > Regionals > North America > Pacific Northwest Regional > 2023 ICPC Pacific Northwest Region > Division 2 B번
ICPC > Regionals > North America > Mid-Central Regional > 2023 Mid-Central USA Programming Contest C번
ICPC > Regionals > North America > South Central USA Regional > 2023 South Central USA Regional Contest > Division 1 M번
ICPC > Regionals > North America > South Central USA Regional > 2023 South Central USA Regional Contest > Division 2 M번
ICPC > Regionals > North America > Mid-Atlantic Regional > 2023 Mid-Atlantic USA Regional Contest > Division 1 M번
ICPC > Regionals > North America > Mid-Atlantic Regional > 2023 Mid-Atlantic USA Regional Contest > Division 2 M번
ICPC > Regionals > North America > Southeast USA Regional > 2023 Southeast USA Regional Programming Contest > Division 1 M번
ICPC > Regionals > North America > Southeast USA Regional > 2023 Southeast USA Regional Programming Contest > Division 2 M번