Welcome to the third Mackenzie Logic Evaluation (MLE) of the 2019-2020 year!

This contest consists of 2 problems, the difficulty of which may range anywhere from CCC Junior to CCO level. You will have the full contest duration to complete the contest. Problems will not have subtasks.

The problems may not be in an increasing order of difficulty. You are recommended to read all the problems.

The problem setter of this contest will be Ninjaclasher.

For this contest, there will be no feedback. This means, when you submit, you will only be judged on the sample test data. After the contest, you will be rejudged on the full set of data to determine your score. In addition, one random constraint will not be given. During the contest, you are encouraged to come up with the best solution possible that works for all the other constraints. After the contest, the best submission that runs in less than half the time limit and a quarter of the memory limit on the worst case will be taken as the reference solution.

Before the contest date, you may wish to check out the tips page.

After joining the contest, you proceed to the Problems tab to begin. You can also go to Users if you wish to see the rankings.

We have listed below some advice as well as contest strategies:

  • Start from the beginning. Ties will be broken by the sum of times used to solve the problems starting from the beginning of the contest. The last submission time of your highest score will be used.
  • Remove all extra debugging code and/or input prompts from your code before submitting. The judge is very strict — most of the time, it requires your output to match exactly.
  • Do not pause program execution at the end. The judging process is automated. You should use stdin / stdout to perform input / output, respectively. It is guaranteed that all the problems will be solvable with C++.
  • Read carefully, and try to attempt all the problems. They may not be as hard as they seem!

At the end of the contest, you may comment below or on Discord to appeal a judging verdict. In the case of appeals, the decision(s) of staff is final.

Good luck.


Problem Points AC Rate Users
MLE '19 Contest 3 P1 - PHP 17 16.7% 1
MLE '19 Contest 3 P2 - Depression 12 34.8% 4


  • -2
    AlanL  commented on Dec. 9, 2019, 7:52 p.m.