apple pie's submission of High Accuracy | CodeChef