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

Common Board

Prob A
Posted by Believe in angels 22 Sep 2001 13:18
Can two relatives have the same heritage ? i.e can we have
this output : (example)
N =
4
3
3

?
Thanks
Why not ?
Posted by Marat Bakirov 22 Sep 2001 13:41
As far as i can see , no one have said that the output
numbers should be different

So wwhen N = 3

3
3
4
 is a possible answer, thoughi don't know if it is optimal