ATTENTION: We've reimplemented the interactive in the function call format.
All necessary files are in the attachments
Include otoci.h at the beginning of your code. You'll need to implement 4 functions:
void init(int N, int Q, int P) - called once at the start
bool bridge(int A, int B) - bridges A and B together, return true if successful, false otherwise
void penguins(int A, int X) - there are now X penguins on island A
int excursion(int A, int B) - returns number of penguins on an excursion from island A to B. If an excursion is impossible, return -1