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 1128. Partition into Groups

Sample output seems contradictory with description!
Posted by orlando22 16 Apr 2009 12:52
As description of question mentioned, we need to output the smaller group of children, which fits the restrictions. However, for sample output, we can also put 5 [without any adversary] into abitrary group, so, the smallest group should not be 1,2,5,6, that's 1,2,6. Am I right? and my program could produce another seemingly meanful answer: 3,6,7[1,2,4,8,5 another group]. yeah, a little bit lost! could someone help me out?
Thank a lot in advance! ^_^
Re: Sample output seems contradictory with description!
Posted by Shahriar Nirjon 7 May 2009 01:59
Yeah, my AC solution also outputs {1, 2, 6} for the sample input. I guess, they have special judge for this problem.