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
616 - Coconuts, Revisited
Moderator: Board moderators
My program was accepted, and it also says 2 people, 1 monkey.jjtse wrote:65539
My program output says 2 people and 1 monkey.
My program is not AC
You know, googolplex is an integer, toojjtse, in http://online-judge.uva.es/board/viewtopic.php?t=104 wrote:Why would that even be an issue? The problem clearly says "integers" as coconutsram wrote:"long int" is not sufficient for longer values.
Try using "long double" instead of "long int" and "fmod" instead of "%".
![;)](./images/smilies/icon_wink.gif)
So, can you tell me what is the output for it?
-
- Guru
- Posts: 1080
- Joined: Thu Dec 19, 2002 7:37 pm
Re: 616 - Coconuts, Revisited
The input test data for this problem is very weak. There are no test cases where the number of people is greater than 5.
-
- New poster
- Posts: 1
- Joined: Mon Dec 28, 2015 10:20 pm
Re: 616 - Coconuts, Revisited
check your program with input 3
. AC Output is 3 coconuts, 2 people and 1 monkey
![:)](./images/smilies/icon_smile.gif)