|
|
back to boardI write program and get WA3: the number must be minimal. In fact, the matter with this test is someway linked to "Impossible" answer. By the way, finding the minimal solution is easy, searching 2^16-2 sequences is enough. I have TLE#15 using your advice... (( Edited by author 13.05.2007 12:06 you are wrong 2^16 is not enough, even 2^18 The answer for 999999 is 111111222222222222222222222222, which contains exactly 30 digits. Are these special 2^16 or 2^18 sequences? For judges: if you don't have test with 30 digits, include this. |
|
|