ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1324. Extra Spaces

Is this answer right for test 1,i.e. the sample?
Posted by HybridTheory 1 Nov 2004 12:43
the answer is:
4
11
5
3
2

Is it right?who can help me?
No.
Read the statement carefully about 'optimal'. Your solution doesn't work for 23, while the sample output does.
Re: No.
Posted by HybridTheory 1 Nov 2004 16:21
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
You're wrong.
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.
Re: You're wrong.
Posted by HybridTheory 3 Nov 2004 05:22
Thank you.I've got ac.