#P16282. [蓝桥杯 2026 省 Python/Java A 组] 罐头编号

    ID: 18297 远端评测题 1000ms 512MiB 尝试: 0 已通过: 0 显示难度普及− 上传者: 标签>提交答案进制2026蓝桥杯省赛

[蓝桥杯 2026 省 Python/Java A 组] 罐头编号

Problem Description

The “pet owner” Xiaolan bought a label printer and planned to put a production number on each can of homemade cat food.

Originally, these numbers should have followed the natural numbers 1,2,3,4,51, 2, 3, 4, 5 \dots in order. However, when Xiaolan went to get label paper, the naughty kitten jumped onto the desk and precisely stepped on the 0 key, breaking it. As a result, this machine can no longer print any label that contains the digit 0.

Xiaolan does not want to repair the printer, so he simply changes the numbering rule: whenever a number contains the digit 0, it is skipped and not printed. Therefore, the numbering sequence on the cat food cans becomes:

  • The 11st can is labeled 11.
  • The 22nd can is labeled 22.
  • \dots
  • The 99th can is labeled 99.
  • The 1010th can (since 1010 cannot be printed, it is skipped) is labeled 1111.
  • The 1111th can is labeled 1212.
  • \dots
  • The 1818th can is labeled 1919.
  • The 1919th can (since 2020 cannot be printed, it is skipped) is labeled 2121.

Xiaolan was extremely busy in the kitchen this weekend and made a total of 12345678903211234567890321 cans of homemade cat food.

Now, please help Xiaolan compute: according to the rules of this broken printer, what number is printed on the 12345678903211234567890321-th can of homemade cat food?

Output Format

This is an output-only fill-in-the-blank problem. You only need to compute the result and submit it. The answer is an integer; when submitting, write only this integer. Any extra content will result in no score.



Hint

Translated by ChatGPT 5