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

I don't understand problem statement
Posted by Euler 16 Aug 2005 19:35
Can anyone tell me what is wrong in answer to test:
4
0 4 1 2
0 0 3 0

ans: 3 4 1 2

and where is it written in problem description?
in my opinion it is correct output according to problem statement. Am I wrong?

Best Regards!

please - answer also to tu219717@students.mimuw.edu.pl
Re: I don't understand problem statement
Posted by Denis Koshman 14 Aug 2008 22:05
You can't pair 1st boy with the 3rd girl because neither of them like each other, and they are not both zero.

Edited by author 14.08.2008 22:05