QOJ.ac

QOJ

Time Limit: 1 s Memory Limit: 1024 MB Total points: 100
الإحصائيات

题目描述

对于正整数 $k$,定义毒假强数 $x$ 满足 $x\times(10^k-1)$ 的十进制表示不包含 $9$ 的正整数,你需要求出第 $n$ 个毒假强数。

输入格式

一行两个整数 $k, n$。

输出格式

一行一个整数表示第 $n$ 个毒假强数。

样例一

input

1 8

output

9

样例二

input

5 84

output

11235

数据范围与提示

子任务编号 $k\leq$ $n\leq$ 分值
$1$ $3$ $1000$ $25$
$2$ $1$ $10^{18}$ $35$
$3$ ${18}$ $10^{18}$ $40$

对于所有数据,$1\leq k\leq {18}, 1\leq n\leq 10^{18}$。

Discussions

About Discussions

The discussion section is only for posting: Editorials, General Discussions (problem-solving strategies, alternative approaches), and Off-topic conversations.

This is NOT for reporting issues! If you want to report bugs or errors, please use the Issues section below.

Open Discussions 0
No discussions in this category.

Issues

About Issues

If you find any issues with the problem (statement, scoring, time/memory limits, test cases, etc.), you may submit an issue here. A problem moderator will review your issue.

Guidelines:

  1. This is not a place to publish discussions, editorials, or requests to debug your code. Issues are only visible to you and problem moderators.
  2. Do not submit duplicated issues. Submitting multiple issues may cause your account to be banned.
  3. Issues must be filed in English or Chinese only.
Active Issues 0
No issues in this category.
Closed/Resolved Issues 0
No issues in this category.