|  | 
|  | 
| вернуться в форум | Is there a solution for n>22292? My full search say that solution exist for n<=22292Re: Is there a solution for n>22292? There is solution for all n <= 10^5 though I still can not fast enough generate answerRe: Is there a solution for n>22292? According to my calculations the largest such sequence can be 344001 for the constraints of the problem.Re: Is there a solution for n>22292? I've solved this problem using DP.Hint: The maximum sum of numbers for required sequence does not exceed 1568617.
Re: Is there a solution for n>22292? Послано YDZz  17 сен 2019 09:11answer for every n existsthere is no possibility to output “impossible”
 | 
 | 
|