One price - Two travels

One price - Two travels

When I test my code on the "new_input1" scenario (which is available on the forum) it produces a different ouput than the one produced by the original code but is still valid in my opinion : the flights are different but the cost is the same.

The difference between the two outputs (let's say the work hard outputs) is the date of the return flight. The one I find takes off and lands earlier than the one found by the original code.

So here is my question : if two different flights are available, and have the same cost but different dates, which one should we choose ? In that particular case, as the traveller, I would like to go home as soon as possible, but this is not what the original code does.

publicaciones de 3 / 0 nuevos
Último envío
Para obtener más información sobre las optimizaciones del compilador, consulte el aviso sobre la optimización.

This issue was discussed several times. Read here http://software.intel.com/fr-fr/forums/topic/336357 my comment about flights with same cost in new_input1, and answer from Cedric.

Thanks for the answer btw, I didn't even take time to thank you...
Should have searched better.

Deje un comentario

Por favor inicie sesión para agregar un comentario. ¿No es socio? Únase ya