ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 2047. Maths

Is there a solution for n>22292?
Posted by Felix_Mate 15 May 2016 11:19
My full search say that solution exist for n<=22292
Re: Is there a solution for n>22292?
Posted by balalaeshnik 16 May 2016 18:16
There is solution for all n <= 10^5 though I still can not fast enough generate answer
Re: Is there a solution for n>22292?
Posted by SomeName 3 Oct 2018 18:14
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?
Posted by Pranjal Jain 16 Oct 2018 07:45
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?
Posted by YDZz 17 Sep 2019 09:11
answer for every n exists
there is no possibility to output “impossible”