An Animal Contest 1

Welcome to An Animal Contest! This contest will be themed around alpacas!

The Problem Setters are dxke02, sjay05, samliu12, danielz1000, WilliamWu277, and ThingExplainer.

Special thanks to Encodeous, Plasmatic, jeffreylin, Evang, Tmaswang03, Brian_Li23, and ArtyKing12 for testing, feedback, and assistance with the problems!

Special shout-out to Riolku for helping us organize the contest!

The contest will run from April 10th, 00:00 EDT to April 12th 00:00 EDT. You will have a two hour window to solve 6 problems of roughly increasing difficulty ranging from CCC Junior to CCC Senior. This contest is targeted more towards beginners.

Here are the parameters of the contest:

  • Contest duration: 2 hours.
  • Number of problems: 6, full feedback (you will see the results of your submissions instantly). Each problem will be worth 100 points, and some problems will offer partial marks in the form of subtasks.
  • Scoreboard will be visible.
  • No incorrect submission penalty.
  • There will be no submission limit.
  • Ties in score will be broken by the sum of the last submission times that increased your score.
  • This contest is unrated.
  • All problems are guaranteed to be solvable in Python 3, Java and C++.

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

We have listed below some advice as well as contest strategies:

  • 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.
  • Python users are recommended to use PyPy 2/3 over Python 2/3 when submitting.

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.


  • 8
    noirsnow  commented on April 12, 2021, 4:30 a.m.

    love the contest and the problems :)

    • 6
      samliu12  commented on April 12, 2021, 1:51 p.m.

      Thanks :)

  • 14
    Evang  commented on April 4, 2021, 3:13 a.m. edited

    as a tester, orz ThingExplainer

  • 23
    WilliamWu277  commented on April 3, 2021, 10:30 p.m.


    • 18
      piddddgy  commented on April 4, 2021, 12:06 a.m.

      so cute, just like you :)

      • 13
        Plasmatic  commented on April 4, 2021, 4:10 p.m. edit 2

        cutecus most cute :3

      • 9
        dxke02  commented on April 4, 2021, 12:49 a.m.


      • 12
        kevinyang  commented on April 4, 2021, 12:15 a.m.

        no u

  • 16
    Encodeous  commented on April 3, 2021, 8:36 p.m.

    Alpaca :)