#4849. Measure
Measure
Measure
题目描述
You are given a positive integer . Print a string of length , , defined as follows.
For each $i = 0, 1, 2, \ldots, N$,if there is a divisor of that is between and , inclusive, and is a multiple of , then is the digit corresponding to the smallest such ( will thus be one of , , ..., ); if no such exists, then is .
输入格式
The input is given from Standard Input in the following format:
输出格式
Print the answer.
12
1-643-2-346-1
7
17777771
1
11
提示
All input values are integers.We will explain how to determine for some .
For , the divisors of between and such that is a multiple of are . The smallest of these is , so .
For , the divisors of between and such that is a multiple of are . The smallest of these is , so .
For , there are no divisors of between and such that is a multiple of , so .
标签: AtCoder|abc319B
来源
AtCoder|abc319B