2740 - Coco-Bits and the Water
Forum rules
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
Remember that posting AC code is not allowed here. If you are going to ask a question or to post a solution, describe your algorithm instead. Posting AC code will be penalized.
- ymondelo20
- Posts: 1968
- Joined: 9 years ago
- Location: Universidad de las Ciencias Informáticas
- Gender:
- Contact:
- ymondelo20
- Posts: 1968
- Joined: 9 years ago
- Location: Universidad de las Ciencias Informáticas
- Gender:
- Contact:
Re: 2740 - Coco-Bits and the Water
Datasets were fixed, and submissions rejudged (some previous WA/RTE are now accepted).
Statement was improved a little for better understanding.
Greetings.
Statement was improved a little for better understanding.
Greetings.
"Every problem has a simple, fast and wrong solution" OJ's Main Law. 

Re: 2740 - Coco-Bits and the Water
El problema no tiene limites. No te dice cuantos nodos(tanques de agua), ni cuantas aristas(conexiones) hay en el grafo, que en este caso es un arbol. 

- ymondelo20
- Posts: 1968
- Joined: 9 years ago
- Location: Universidad de las Ciencias Informáticas
- Gender:
- Contact:
Re: 2740 - Coco-Bits and the Water
Resuelto usando 10^6 como máximo valor para ambos parámetros.
"Every problem has a simple, fast and wrong solution" OJ's Main Law. 
