Page 3 of 3

Posted: Wed Nov 01, 2006 9:45 am
by jjtse
are you sure there is no solution for this case?


65539


My program output says 2 people and 1 monkey.


My program is not AC

Posted: Wed Nov 01, 2006 9:55 am
by jjtse
Hi,

I'm wondering if someone can give some more sample inputs/output for this problem. I think my program is pretty good except maybe a few special cases.


Thanks

Posted: Wed Nov 01, 2006 10:05 am
by jjtse
ram wrote:"long int" is not sufficient for longer values.

Try using "long double" instead of "long int" and "fmod" instead of "%".

Why would that even be an issue? The problem clearly says "integers" as coconuts

Posted: Wed Nov 01, 2006 11:24 am
by mf
jjtse wrote:65539

My program output says 2 people and 1 monkey.

My program is not AC
My program was accepted, and it also says 2 people, 1 monkey.
jjtse, in http://online-judge.uva.es/board/viewtopic.php?t=104 wrote:
ram wrote:"long int" is not sufficient for longer values.

Try using "long double" instead of "long int" and "fmod" instead of "%".
Why would that even be an issue? The problem clearly says "integers" as coconuts
You know, googolplex is an integer, too ;)
So, can you tell me what is the output for it?

Posted: Wed Nov 01, 2006 11:42 am
by little joey
mf wrote:You know, googolplex is an integer, too ;)
So, can you tell me what is the output for it?
"That was a hell of a lot of coconuts for one monkey (burp!); next time I'll stick to bananas!"

Posted: Sat Feb 17, 2007 9:37 am
by hi!man!
Andrey Mokhov wrote:Well you know I was lazy enough to calculate the higher limit of n, but it's clear for me that n=30 is enough. Of course it may be even too much, but I don't want to improve the limit. :lol:

Best regards.
n = 9 is enough.

Re: 616 - Coconuts, Revisited

Posted: Mon Apr 07, 2014 12:16 am
by brett1479
The input test data for this problem is very weak. There are no test cases where the number of people is greater than 5.

Re: 616 - Coconuts, Revisited

Posted: Mon Dec 28, 2015 10:26 pm
by ashik_53@diu
check your program with input 3 :) . AC Output is 3 coconuts, 2 people and 1 monkey