You are given a positive integer N Print a string of length N+1 s 0 s 1 …s N defined as followsFor each i=012…Nif there is a divisor j of N that is between 1 and 9 inclusive and i is a multiple of
给定一个正整数N。输出长度为(N+1)的字符串s0s1…sN,定义如下。
对于每个i=0,1,2,…,N,
如果存在一个介于1到9之间的N的因子j,并且i是N/j的倍数,则si是最小的满足条件的j对应的数字(si将是1、2、…、9中的一个); 如果不存在这样的j,则si为-。
原文地址: https://www.cveoy.top/t/topic/i26u 著作权归作者所有。请勿转载和采集!