Editorial for COCI '08 Contest 2 #4 Svada
Submitting an official solution before solving the problem yourself is a bannable offence.
Suppose that the output (how many seconds passed between the arrival of the first type and second types of monkeys) is
We can calculate how many coconuts the first type can gather in
Also, we can calculate how many coconuts the second type can open in
If
If
The correct output is the largest
Comments