Code for the ICPC 2014 World Finals quest programming challenges