Zhang Yide's submission of To Queue or not to Queue | CodeChef