Mock CCC '22 Junior 2

Welcome to a mock CCC Junior contest!

The contest organizer is maxcruickshanks.

The problem setters are uselessleaf, ayay9, and Tommy_Shan.

Special thanks to Antt, henrybaolol9, generaleoley, yunz_qiao, Dory, ethanlinsy, CPlusPlusEleven, tofu, Dwin2020, pewpew, and 744831 for testing and feedback on the problems.

The contest will run from January 28th, 00:00 EST until February 16th, 00:00 EST.

The problems range in difficulty from CCC Junior 1 to CCC Junior 5.

Here are the parameters of the contest:

  • Contest duration: 3 hours.
  • Number of problems: 5, full feedback. Each problem will be worth 15 marks, and may have partial marks in the form of subtasks.
  • This contest is not rated.
  • Scoreboard will be hidden until your window is over.
  • Number of submissions allowed per problem: 50.
  • Checkers for problems: Unless otherwise specified, identical. The contest will follow the standard convention of having all lines terminate with a \n character.
  • Clarification requests for the contest must be routed through the clarification system provided on DMOJ, and not through other channels including but not limited to Slack or Discord. Furthermore, all clarification requests must come in the form of yes/no questions.

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

The problems range in difficulty from CCC Junior 1 to CCC Junior 5. It is highly recommended to read all of the problems. After the contest window begins, you may begin at any time. 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, whichever comes first.

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

  • Problems will be approximately increasing in difficulty. Reading all of the statements is still 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 problems and subtasks will be solvable in C++ and Java; Python users are recommended to use PyPy.


  • 0
    Leo_Wang_the_king  commented on Feb. 16, 2022, 3:29 a.m.

    What is the type of the last question?

  • 2
    johnxue2019  commented on Feb. 12, 2022, 3:42 a.m.


  • 2
    candyappled  commented on Feb. 10, 2022, 3:48 a.m.


  • 3
    Lost  commented on Jan. 31, 2022, 4:45 p.m.


  • 4
    yunz_qiao  commented on Jan. 28, 2022, 4:28 p.m.


  • 2
    Spitfire720  commented on Jan. 27, 2022, 12:54 p.m. edited

    Note that Mock CCC '22 Junior 2 can end after the actual CCC if you time it right.

    • 0
      dizmac  commented on Jan. 27, 2022, 2:02 p.m.

      I need ways right now

      • 0
        Spitfire720  commented on Jan. 27, 2022, 2:40 p.m.

        Do the CCC on the day of during school hours, then sprint back to DMOJ and do this contest. You'll have done the Mock CCC after the actual one.

        • 1
          dizmac  commented on Jan. 31, 2022, 1:37 p.m.

          Will be doing the CCC during math, English, and science class!!!

  • 12
    dawangk  commented on Jan. 27, 2022, 2:48 a.m.

    yay more mock CCCs!

  • 7
    tofu  commented on Jan. 27, 2022, 2:36 a.m.


  • 9
    pewpew  commented on Jan. 27, 2022, 2:25 a.m.


  • 9
    ethanlinsy  commented on Jan. 27, 2022, 2:24 a.m.


  • 8
    henrybaolol9  commented on Jan. 27, 2022, 2:23 a.m.