- Python version: 3.11
To run each part, compile using any preferred Python compiler and run the code in any interpreter. We used Replit to compile and run our code. Inputs follow the provided documents, however, in Part 3, our program accepts input with a space between every closing bracket and comma. Our outputs follow this same pattern in Part 3.
a->b, b->c, c->d, d->b
a->b ($4), b->c ($5), c->d ($3), d->b ($7), a->c ($4), d->a ($1)
a->b ($4, 1 min cooldown), b->c ($5, 1 min cooldown), c->d ($3, 3 min cooldown), b->d ($7, 3 min cooldown), a->c ($4, 3 min cooldown), d->a ($1, 4 min cooldown)