|
|
back to boardi've got WA3 Edited by author 06.11.2009 07:47 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. |
|
|