gym102798 2020CCPC威海L Clock Master
题目:TTT组数据。每组数据给定一个数bbb,找出一组数ttt,满足∑i=1∣t∣ti≤b\displaystyle \sum_{i=1}^{|t|}t_i \le bi=1∑∣t∣ti≤b且vk=(k%t1,k%t2,⋯k%t∣t∣)v_k=(k\%t_1,k\%t_2,\cdots k\%t_{|t|})vk=(k%t1,k%t2,⋯k%t∣t∣)的种类数最多,其中kkk为非负整数。(1≤T,b≤30000)(1 \le T,b \le 30000)(1≤T,b≤30000)题解