|
|
back to boardthe answer is: 4 11 5 3 2 Is it right?who can help me? Read the statement carefully about 'optimal'. Your solution doesn't work for 23, while the sample output does. No. If there's 23 spaces. After the first round there's 3. And in the third round they become one. Edited by author 01.11.2004 16:22 For 23: After the first round there are 12 spaces instead of 3. Because 23 means there are 1 space, 2 spaces, 3 spaces... up to 23 spaces, not only 23 spaces. After the first round, 23 becomes 3, but 21 leaves 12. |
|
|