#abc357d. D - 88888888
D - 88888888
Score : points
问题陈述
对于一个正整数 ,让 是通过将 连接 次形成的整数。 更精确地说,将 视为一个字符串,连接 个副本,并将结果视为一个整数以得到 。 例如, 且 。
找出 除以 时的余数。
以上为大语言模型 kimi 翻译,仅供参考。
Problem Statement
For a positive integer , let be the integer formed by concatenating exactly times.
More precisely, consider as a string, concatenate copies of it, and treat the result as an integer to get .
For example, and .
Find the remainder when is divided by .
Constraints
- is an integer.
Input
The input is given from Standard Input in the following format:
Output
Print the remainder when is divided by .
Sample Input 1
5
Sample Output 1
55555
The remainder when is divided by is .
Sample Input 2
9
Sample Output 2
1755646
The remainder when is divided by is .
Sample Input 3
10000000000
Sample Output 3
468086693
Note that the input may not fit into a -bit integer type.