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

I do not understand why at me WA#3. Help me please.
Posted by Zubyk Taras(Khmelnitsky) 27 May 2006 13:05
I count, that all children in one group.
Then I look, whether there is in this group a child,
Which has more than one enemy in this group if yes then I consider{count}, that this child will be in the second group.
After that, I look at the second group and if I there shall find the child who has
In group more than one enemy the answer will be
" NO SOLUTION "
 Help, please. Give me some tests or show me my a mistake
Re: I do not understand why at me WA#3. Help me please.
Posted by SPIRiT 9 Nov 2006 15:39
You're wrong. Answer 'NO SOLUTION' is impossible. There is something else here