Competitive Programming Contest '19

Welcome to the Competitive Programming Contest (CPC)!

The problem setters are: Rimuru, Plasmatic, crackersamdjam, Dormi, and wleung_bvg.

We will be using full-feedback (no systests) and this round will be rated for all participants who submit at least once.

Furthermore, users are forbidden from using multiple accounts or collaborating during the entire contest duration.

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

This contest will consist of 6 main problems, the difficulty of which may range anywhere from CCC Junior to CCO level.

Some problems offer partial marks in the form of subtasks. If you cannot solve a problem fully, we encourage you to go for these partial marks.

You will have 3 hours to complete the contest. After the contest window begins, 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 (9:00 PM EDT of May 5th), whichever comes first.

Additionally, this contest will feature a 7-th problem (Problem 0) for students who are just getting started with programming.

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 first submission time of your highest score will be used.
  • 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++.

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.


  • 1
    Rimuru  commented on May 11, 2019, 6:57 p.m.

    I have uploaded the version of problem 3 here, which contains side cases that was specified in the old editorial.

  • 2
    scanhex  commented on May 7, 2019, 12:07 p.m.

    When the rating will be updated?

    • 6
      Rimuru  commented on May 7, 2019, 11:39 p.m.

      We have rated the contest. Thank you for participating!

    • 12
      Ninjaclasher  commented on May 7, 2019, 12:59 p.m.

      The contest will be rated once the organizers finish checking for cheaters.

  • 8
    DEPRESSED_IDIOT  commented on May 6, 2019, 2:42 a.m.

    fun contest.

  • 4
    Plasmatic  commented on May 6, 2019, 12:43 a.m. edit 2

    Edit: Problems and editorials are up!

    enter image description here

    Jason Yuen at May 5th, 2019, 8:47 PM EST

  • 2
    wleung_bvg  commented on May 4, 2019, 1:09 p.m. edit 6


    There was previously an issue with DMOJ judges being down. All submissions that were made between 9:00am and 9:45am on May 4th have been rejudged. We apologize for the inconvenience. Anyone who was significantly affected by this issue may request to be unrated.

    • 6
      Rimuru  commented on May 4, 2019, 1:45 p.m.

      Has been fixed now. Sorry about it.

  • 7
    Beautiful_Times  commented on May 3, 2019, 3:09 p.m.

    Best contest name I've ever seen.

  • 6
    Riolku  commented on May 3, 2019, 2:09 p.m.

    Why does this feel like DMOPC '18 May Contest...