|  | 
|  | 
| вернуться в форум | input = 8,  brute force time out ? I am using a brute force, but it gives me time limit exceed on case 4, which is n = 8.
 can anyone tell me how to speed up this, thanks!
Re: input = 8,  brute force time out ? hehe,, found a good solution to it...problem solved!
Re: input = 8,  brute force time out ? So Am I - how did you improve the performance ?Re: input = 8,  brute force time out ? How did you speed it up?Re: input = 8,  brute force time out ? 1.. try brute force to get the total number of sums of digits within n/22.. try DP, I think it will be similar to problem 1036
 
 
 Edited by author 16.12.2011 18:52
 | 
 | 
|