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 1366. Presents

Pages: Previous 1 2
Re: How calc this?
Posted by Tbilisi SU: Eldar Bogdanov 17 Oct 2006 01:25
Andrew, you're wrong - F(0)=1 and F(1)=0 :)
For n=1, there is no way that the child gives his present to anybody else, so the answer has to be 0.

P.S. I seem to have the best time for this problem... :D
no message
Posted by SuperLight 17 Oct 2006 20:28
Pages: Previous 1 2