The training went well, but the problems were a bit more challenging; two of them remained unsolved.
Here are the final results:
Congratulation to Nikola Djokic!
The problem statement. The solutions and IO are available from: http://doc.hc2.ch/training_data.zip .