|
|
вернуться в форумPlease, help.Where is my mistake? i've got WA3 Edited by author 06.11.2009 07:47 Re: Please, help.Where is my mistake? Послано melkiy 6 ноя 2009 03:11 1) You push_back next s even if it leads to sum>n. 2) >> if (sumr(s)>n) break; You mustn't break out of the cycle on this condition. Simply do not push_back(s) and consider next s, i.e. s-1. Re: Please, help.Where is my mistake? Thank you very much! |
|
|