QOJ.ac

QOJ

Time Limit: 2 s Memory Limit: 512 MB Total points: 100 Difficulty: [show]

#1875. لا

Statistics

بمعرفة $k$ و$n$، أوجد العدد الصحيح الموجب $x$ الذي ترتيبه $n$ تصاعديًا بين الأعداد التي لا يحتوي التمثيل العشري لحاصل ضربها $x\cdot\underbrace{999\ldots9}_{k}$ على أي رقم $9$.

الإدخال

يحتوي السطر الوحيد على عددين صحيحين $k$ و$n$ ($1\le k\le18$، $1\le n\le10^{18}$).

الإخراج

اطبع الإجابة.

أمثلة

الإدخال 1

1 1

الإخراج 1

2

الإدخال 2

1 8

الإخراج 2

9

الإدخال 3

1 9

الإخراج 3

12

الإدخال 4

1 10

الإخراج 4

13

الإدخال 5

5 1

الإخراج 5

11112

الإدخال 6

5 84

الإخراج 6

11235

الإدخال 7

5 668

الإخراج 7

12345

الإدخال 8

5 733942

الإخراج 8

2281488

ملاحظة

عندما يكون $k=1$، تبدأ متتالية جميع الأعداد الصالحة بالأعداد $2,3,4,5,6,7,8,9,12,13,\ldots$.

Editorials

IDTypeStatusTitlePosted ByLast UpdatedActions
#548Editorial Open集训队作业 解题报告 by 朱鹏睿Qingyu Download

Discussions

About Discussions

The discussion section is only for posting: 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.
  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.