Competition code

Sorry for the wait, Shuhao (didn't know the hotel's internet credentials). License included, natch.