ICPC Chile - motivational - div0 (hard)

Standings

Solved Attempted Pending judgement