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 1339. Babies

How to resolve collision
Posted by Golden Amalgam 19 Feb 2005 12:18
If a girl does not like the boy who loves her, how do we resolve collisin.
And if there is more than two boys and girls not liking anyone how do we resolve that.
Re: How to resolve collision
Posted by Angel Dzhigarov 19 Feb 2005 14:33
And if

Boy A loves girl B
Girl B loves boy C
Boy C loves nobody

how to proceed?
Re: How to resolve collision
Let Boy A go with Girl B,
and Boy C go with any girl that loves Boy C or nobody
Re: How to resolve collision
Posted by Denis Koshman 14 Aug 2008 22:12
To 1st post: that's not collision but ambiguous result. Any is ok.

Edited by author 14.08.2008 22:26