Skip to content

COORDINAR-PEDIDOS falla con múltiples pedidos del planeta #30

Answered by 4n1t4
clumsypunch asked this question in Tarea 0
Discussion options

You must be logged in to vote

Holi gente. Se revisó el caso, y los test están correctos. Les recomiendo fijarse bien en su lógica de transferencia. Recuerden que el comando COORDINAR-PEDIDOS puede transferir un total de X pedidos desde 0 hasta n pedidos. Para probar que funcione bien pueden probar con un archivo input.txt pequeño de su creación y comprobar que funcione de forma efectiva para un numero n de transferencia.

Por ejemplo:

10
10
9
REGISTRAR-PEDIDO 0 0 0
REGISTRAR-PEDIDO 1 1 0
REGISTRAR-PEDIDO 2 1 0
REGISTRAR-PEDIDO 3 0 1
REGISTRAR-PEDIDO 4 1 0
REGISTRAR-PEDIDO 5 0 0
REPORTE-PEDIDOS
COORDINAR-PEDIDOS 0 1 0
REPORTE-PEDIDOS

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@clumsypunch
Comment options

Comment options

You must be logged in to vote
1 reply
@4n1t4
Comment options

Answer selected by benjavicente
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants