Wesley's Anger Contest 5

It is well known that wleung_bvg is always angry. To vent out his anger, he decided to create yet another contest with Zeyu, aeternalis1 and Pookmeister.

With all this free time, the squirrel nation gradually gets more and more bored. As a result, more and more problems have been occurring and they seek your help to resolve these conflicts!

Here are the parameters of the contest:

  • Contest duration: 3 hours.
  • Number of problems: 7, full feedback. Each problem will be worth 100 points, with some problems offering partial marks in the form of subtasks.
  • Rated for opening the contest. Unlike with other contests which require making a submission for the contest to be rated, opening the contest and being able to read the problems will cause the contest to be rated.
  • Scoreboard will be public.
  • No submission penalty.
  • 50 submission limit per problem.
  • Ties will be broken by the last submission time that increased your overall score.
  • Checkers for problems: Unless otherwise specified, identical. The contest will follow the standard convention of having all lines terminate in a \n character, with no trailing whitespace.

Furthermore, users are forbidden from using multiple accounts or collaborating during the entire contest duration. Any suspicious behaviour during the contest window may result in a severe penalty including, but not limited to, being placed at the bottom of the scoreboard. Such behaviour includes, but is not limited to:

  • Registering for the contest with at least two accounts.
  • Participating in the contest with an account that is not your primary account.
  • During the contest window, talking about the contest in more detail than answering a yes/no question about whether one participated in the contest. This includes, but is not limited to, posting spoilers about the contest and public speculation of the contest.
  • Attempting to exploit bugs in the platform to subvert the constraints of the contest.

The problem setters for this contest are wleung_bvg, Zeyu, aeternalis1 and Pookmeister.

Special thanks to Dormi, crackersamdjam, Plasmatic, tangsaidi, and piddddgy for providing feedback and testing the problems.

A special thank you to Ninjaclasher for his administrative assistance with the contest.

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

This contest will consist of 7 problems, the difficulty of which is similar to a typical Wesley's Anger Contest.

You will have 3 hours to complete the contest. After the contest window begins (August 7th, 09:00 EDT), you may begin at any time. Once you enter the contest, your personal timer will start counting down and you will be able to submit until 3 hours from when you started, or until the hard deadline (August 10th, 23:59 EDT), whichever comes first.

After joining the contest, you can 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:

  • It is not guaranteed that the problems will be in order of increasing difficulty. Reading all of the statements is recommended.
  • 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++. All problems have a time limit of at least 2x the reference solution, which is written in C++ and uses this template for I/O. If you're unable to see the template, you must solve this problem. Problems that have been tested in multiple languages may have language specific time limits.

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


  • 17
    noYou  commented on Aug. 11, 2020, 5:20 p.m.

    This contest was clean, why can't the CCC be like this ;(

    • 9
      aaronhe07  commented on Aug. 11, 2020, 5:44 p.m.

      The CCC might be Waterloo's most neglected contest.

      • 6
        Plasmatic  commented on Aug. 11, 2020, 7:42 p.m. edited

        unfortunately :(

  • 5
    Sadman  commented on Aug. 11, 2020, 4:14 a.m.

    Is there an editorial?

    • 9
      wleung_bvg  commented on Aug. 11, 2020, 4:16 a.m.

      Editorials will be released for all problems within 24 hours.

  • 10
    wleung_bvg  commented on Aug. 10, 2020, 2:11 a.m. edited

    There was previously an issue with DMOJ being down at around 3:50pm EDT to 4:00pm EDT on August 9th. We apologize for the inconvenience. Anyone may request to be unrated through Discord by messaging Pookmeister or wleung_bvg if they were significantly affected by this issue.

  • 15
    Zeyu  commented on Aug. 5, 2020, 7:26 p.m.

    Due to popular demand the contest has been extended by 24 hours.

    • -3
      doruuu  commented on Aug. 5, 2020, 9:12 p.m.

      damn bruh 27 hour personal window sounds kinda tough ngl
      is it advisable to sleep during my window? i don't know that i can stay awake for so long

      • 12
        wleung_bvg  commented on Aug. 5, 2020, 9:16 p.m.

        In case there was any confusion, the duration of the contest remains 3 hours, however the period of time where you may start has been extended by 24 hours.

        • -10
          doruuu  commented on Aug. 5, 2020, 9:19 p.m.

          This comment is hidden due to too much negative feedback. Show it anyway.

          • -6
            tzak_el  commented on Aug. 11, 2020, 2:52 p.m.

            This comment is hidden due to too much negative feedback. Show it anyway.

  • 19
    Encodeous  commented on Aug. 3, 2020, 1:38 a.m.

    Wack 5

    • 7
      skyflaren  commented on Aug. 7, 2020, 5:39 p.m.

      whack 5