Summer Contest #1

Kirito keeps getting requests for a summer contest, so he finally caved and made one.

This round will not be rated.

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

This contest will consist of 1 problem, the difficulty of which may range anywhere from CCC Junior to IOI level.

This problem may 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 1 hour 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 1 hour from when you started, or until the hard deadline (noon EDT of Jul. 7th), 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:

  • 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++.

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.


Problem Points AC Rate Users
Maintaining a Sequence 30p 13.1% 15


  • -1
    Dordor1218  commented on July 15, 2018, 8:03 p.m.

    Just asking... The top three ppl all did the contest in under 3 minutes?! hows that possible?

  • 6
    alexzhang  commented on July 3, 2018, 4:26 a.m.

    Join Contest.

    Read Problem Description.

    Leave Contest.

  • 8
    spencercompton  commented on July 1, 2018, 5:34 p.m.

    After taking the contest, I'm unsure why it isn't rated.

  • 23
    kobortor  commented on July 1, 2018, 1:43 p.m. edited
    My god! What a great contest!
    A single great question, with no stupid `J1 / Div1A` filler questions.
    Infact, I would say this was the greatest contests I have ever written.
    Never thought I would say this, but
    The subtasks were reasonable, 
    Accomodating every skill level
    I wish my teacher showed me this contest when I was a newbie.
    Nevertheless, I am glad did this contest
    It had minimal cancer, and it required 
    New and old algorithms alike.
    Getting that `AC` was the greatest feeling of my life.
    After I solved the contest, I could not help but write this love letter to the problem-setter.
    Such a wonder problem-setter you are.
    Ever considered joining the IOI Scientific Committee?
    Qualifying for it shouldn't be hard, considering your natural talent.
    Upsolving this question should be given as practice to every IOI team.
    Even the Moroccans.
    Now that this problem is available to the public, I think it would become an instant classic.
    Countries and companies around the world would bid for your skills.
    Eventually, your name should go in the history books as one of the world's programming legends.

    Those unfamiliar with the legendary problem might ask, but what is the problem about? And to that I tell them to read the first letter of every line.

  • -4
    TimothyW553  commented on June 20, 2018, 1:00 p.m.

    Will there be any more TLEs?

  • -2
    jsumabatz  commented on June 17, 2018, 1:34 p.m.

    liwi AQT our prayers to senpai Kirito have been answered! ;0