ACM ICPC World Finals 2010

Problem A: APL Lives

This is a somewhat painful exercise in writing a parser. However, the examples given are fairly generous (in particular the case with multiple assignments in the same statement), so there are not really any tricky cases to think of. Being careful is the key.