Another Contest 5

Hello, welcome to a DMOJ contest! We're glad to invite you to another contest! Here are the parameters of the contest:

  • Contest duration: 2 hours.
  • Number of problems: 5, full feedback. Each subtask on each problem is worth one point. As per AtCoder format, every submission before your earliest highest scoring submission for a given problem will incur a five minute penalty. However, submissions on problems you do not score on do not penalize you.
  • There will be an interactive problem.
  • Rated for all users who open the contest and have rating less than 2200.
  • Scoreboard will be hidden.
  • Contest will run on AtCoder format. This means that ties will be broken first by the number of points you have, and second by the time of your latest earliest highest scoring submission on a problem, plus five minutes per submission on a problem prior to scoring on it.
  • Number of submissions allowed per problem: 50.
  • Checkers for problems: Unless otherwise specified, identical. The contest will follow the standard convention of having all lines terminate in a \n character.
  • Testers for this contest: arknave, Cthulhu, kobortor, and neal.

Clarification requests for the contest must be routed through the clarification system provided on DMOJ, and not through other channels including but not limited to Discord, Messenger, or Slack. Furthermore, all clarification requests will be handled the way they normally are in IOI. Note that, in particular, clarification requests must come in the form of yes/no questions.

Due to rampant issues with cheating on contests that has happened recently, any suspicious behavior during the contest window may result in your performance being disqualified and pushed to the bottom of the scoreboard. Such behavior includes, but is not limited to:

  • Registering for the contest with at least two accounts.
  • During the contest window, talking about the contest in more detail than answering a yes/no question about whether one participated in the contest.
  • Attempting to exploit bugs in the platform to subvert the constraints of the contest.

Before the contest date, you may wish to check out the tips and help pages.

The contest consists of 5 questions with a range of difficulty. It is highly recommended to read all of the problems. You will have 2 hours to complete the contest. After the contest window begins, you may begin at any time. Your personal timer will start counting down, and you will be able to submit until 2 hours from when you started, or until the hard deadline, whichever comes first.

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 as specified at the top of the contest description.
  • Remove all extra debugging code and/or input prompts from your code before submitting. The judge is strict — your output must match the judge output 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++. All problems have a time limit of at least 3x the reference solution, which is written in C++.

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


Problem Points AC Rate Users Editorials
Another Contest 5 Problem 1 - Goat Fence 3p 26.8% 382 Editorial
Another Contest 5 Problem 2 - Great Graffiti 5p 19.4% 171 Editorial
Another Contest 5 Problem 3 - Cutting Cheese Costs 5p 22.9% 269 Editorial
Another Contest 5 Problem 4 - Tudor Interacts With Poop 15p 15.9% 22
Another Contest 5 Problem 5 - Another Cheese Problem 12 18.6% 53 Editorial
Another Contest 5 Problem 6 - Tudor Interacts With Poop (Sample) 1p 8.3% 11


  • 5
    crimsonred  commented on July 23, 2019, 5:48 a.m.

    For testing my code on problem 4 in the contest, I had submitted it on the sample problem and it had given WA on the sample test case. After the contest I submitted the exact same code on problem 4 and it gave AC. In the contest I didn't submit on problem 4 because I was getting WA on the sample problem which shouldn't have happened. Please look into this.

    Also, it looks like this problem has been copied from here:

    • 0
      xiaowuc1  commented on July 24, 2019, 12:14 p.m. edit 4

      There was an inconsistency between the sample variant of the problem and the real variant, and submissions that should have received a samples passed verdict did not. This issue was flagged early in the contest but was not addressed during the contest window so that all contestants would have the same experience with the problem, as several contestants had already solved the problem properly in spite of the inconsistencies.

      As a result, we are unrating this contest. We would like to apologize to everyone who was impacted by this issue, we hope that irrespective of the issues everyone enjoyed working on the contest.

      • 5
        Plasmatic  commented on July 25, 2019, 12:14 a.m. edit 2

        This negatively affects anyone who thought that you could submit to F without penalty.

        As in, anyone who read the rules.

        EDIT: Issue Resolved