Wesley's Anger Contest 6

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, but this time it's 8 problems! To help with this, they pulled in Riolku to come up with some great problems.

After receiving feedback on the previous contests, we have decided to add an additional problem at the beginning of the contest. We expect this problem to be easier than all previous WAC problems.

Here are the parameters of the contest:

  • Contest duration: 4 hours.
  • Number of problems: 8, 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.
  • No submission limit.
  • 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, Riolku and Pookmeister.

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

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

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

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

You will have 4 hours to complete the contest. After the contest window begins (January 23rd, 09:00 EST), 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 4 hours from when you started, or until the hard deadline (January 24th, 23:59 EST), 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.


  • 4
    wleung_bvg  commented on Feb. 1, 2021, 6:51 a.m. edited

    Ratings for this contest are finalized. If you wish to appeal a decision, please contact one of the problem setters or a DMOJ admin on Discord.

  • 19
    EpicChadGamer  commented on Jan. 25, 2021, 6:39 a.m. edit 4


  • 1
    Subway_Man  commented on Jan. 25, 2021, 5:38 a.m.

    tfw you miss the contest by an hour for the 3rd time in a row .-.

  • 14
    Tzak  commented on Jan. 25, 2021, 5:24 a.m.


    • 1
      kdrkdr  commented on Jan. 25, 2021, 6:23 a.m.

      red quack red quack

    • 5
      kevinyang  commented on Jan. 25, 2021, 5:26 a.m.

      orz red tzak

  • 2
    lemondeath  commented on Jan. 25, 2021, 5:08 a.m. edited

    Thank you contest writers for the great contest! When will the editorials be released (if at all)?

    edit: actually never mind i see the editorials coming in

  • 11
    Kirito  commented on Jan. 25, 2021, 5:06 a.m.

    Preliminary ratings are out. A separate announcement will be made once ratings are finalized.

  • 13
    Scopula  commented on Jan. 24, 2021, 9:51 p.m.

    Thanks for the contest. Didn't go too well for me, but I enjoyed it.

  • 1
    noYou  commented on Jan. 23, 2021, 3:58 p.m.

    Can the contest be extended to monday since there's usaco this weekend as well?

    • 4
      wleung_bvg  commented on Jan. 23, 2021, 4:46 p.m.

      Given that USACO already has a 4 day window with 2 full days that do not overlap with this contest, we will not be extending our window.

  • 8
    SuperClash  commented on Jan. 23, 2021, 3:15 a.m.

    Are premade macros allowed?

  • 17
    pgupta1  commented on Jan. 19, 2021, 10:49 p.m.

    Is this contest recommended for beginners?

    • 5
      wleung_bvg  commented on Jan. 20, 2021, 12:13 a.m.

      Yes. This contest has problems of varying difficulty so that everyone should find a good mix of easy and challenging problems. We expect the additional problem added to the beginning of the contest should help with our goal of having everyone solve at least 1 problem.

      • 12
        pgupta1  commented on Jan. 20, 2021, 12:26 a.m.

        Thank you

    • 9
      dxke02  commented on Jan. 20, 2021, 12:02 a.m.

      The First 1-3 problems are quite easy, only need to know basic concepts. The last few problems are for people experienced in CP Just try and solve as many questions as you can.

  • 1
    miraku  commented on Jan. 18, 2021, 10:12 p.m.

    What languages are allowed for this contest? Can I use Java?

    • 0
      OneYearOld  commented on Jan. 19, 2021, 12:57 a.m.

      It is almost certain that you can use Java, as it is a major language.

      Here are the list of supported languages for the problems from the last contest:

      Ada, Assembly, Awk, Brain**, C, C#, C++, COBOL, D, Dart, F#, Forth, Fortran, Go, Haskell, Intercal, Java, JS, Kotlin, Lisp, Lua, OCaml, Pascal, Perl, PHP, Pike, Prolog, Python, Racket, Ruby, Rust, Scala, Scheme, Sed, Swift, TCL, Text, Turing, VB, Zig

      • 2
        miraku  commented on Jan. 19, 2021, 10:38 p.m. edited

        Got it, thanks

        edit: why did this comment get 11 dislikes, is there a problem with the comment or contest?

    • -1
      wleung_bvg  commented on Jan. 19, 2021, 12:45 a.m.

      Basically any language listed here should be supported for the contest, however we can only guarantee that all problems are solvable in C++.

  • 13
    dxke02  commented on Jan. 18, 2021, 8:04 p.m.

    Is it a coincidence that the contest is on the exact same weekend as USACO?

  • 18
    Eason_Hao1019  commented on Jan. 18, 2021, 8:03 p.m.

    Does any one know one will the next CMOPC contest start at

  • 26
    Eason_Hao1019  commented on Jan. 18, 2021, 7:37 p.m.

    Does anyone know where can i find the previous years questions for this contest?

  • 26
    Eason_Hao1019  commented on Jan. 18, 2021, 5:32 a.m.

    How to sign up?

    • 27
      dxke02  commented on Jan. 18, 2021, 1:41 p.m.

      As long as you are a registered DMOJ user, you can participate. Once the contest starts you will see a little "Join" button, then you can join the contest. Read the description more carefully