Universal Cup Judging System

Universal Cup

Süre Sınırı: 2.0 s Bellek Sınırı: 1024 MB Toplam puan: 100 Hack'lenebilir ✓
İstatistikler

Сізге ондық санау жүйесінде жазылған бүтін $N$ саны берілген.

Нәтижесінде алынған санның алдында нөлдері (leading zeros) болмайтындай етіп, $N$ санының цифрларының орнын ауыстыру арқылы құрастыруға болатын барлық бүтін сандарды қарастырайық.

Осындай сандардың ішінде $11$-ге бөлінетіндерінің санын жай сан болып табылатын $2147483647$ ($= 2^{31} - 1$) модулі бойынша табыңыз.

$N$ санының цифрларының орнын ауыстыру арқылы құралған бүтін сандардың қатарына $N$ санының өзі де кіретініне назар аударыңыз.

Кіріс деректері

Кіріс деректері келесі форматта беріледі:

$$N$$

  • Барлық кіріс мәндері бүтін сандар болып табылады.
  • $1 \le N < 10^{2 \times 10^6}$
  • $N$ ондық жүйеде алдыңғы нөлдерсіз беріледі.

Шығыс деректері

Жауапты бір жолға шығарыңыз.

Мысалдар

Кіріс 1

1001

Шығыс 1

2

Кіріс 2

31415926535

Шығыс 2

144000

Ескертпе

Бірінші мысалда $1100$ және $1001$ сандары шартты қанағаттандырады.

Editorials

IDTypeStatusTitlePosted ByLast UpdatedActions
#1408EditorialOpen题解jianglyView

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.