Richmond Green Programming Contest 2018

Welcome to the second annual Richmond Green Programming Contest!

The problem writers of this contest are chenj, RuAr, and tiffie44.

The RGPC '18 will be a 3-hour virtual contest, which will allow contestants to participate in any 3-hour window between 12:00 AM EST on February 10, 2018 and 12:00 AM EST on February 12, 2018. Please refrain from using multiple accounts to participate and refrain from discussing the problems and/or their solutions with other people during the entire contest period.

This contest will not use pretests/systests, which means that all submissions will be judged immediately, as in the CCC. In addition, due to the length of the contest window, this contest will be unrated.

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

This contest consists of 5 questions with difficulty ranging from CCC Junior to CCO level, and some problems will offer partial marks in the form of subtasks. If you cannot solve a problem fully, we encourage you to go for these partial marks. It is highly recommended to read and attempt all of the problems. 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 (midnight EST of Feb. 12th), whichever comes first.

After joining the contest, you proceed to the Problems tab to begin. You may also go to Users if you wish to see the rankings.

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.
  • It is guaranteed that all the problems will be solvable with C++


  • -1
    sunnylancoder  commented on Feb. 10, 2018, 8:51 p.m.

    P5: What does rectangular mean? A rectangular prism or are two of the dimensions restricted to 1?

    • 1
      RuAr  commented on Feb. 10, 2018, 10:08 p.m. edited

      There are no such restrictions on the dimensions.

  • 0
    max  commented on Feb. 10, 2018, 7:55 p.m. edited


    apass_jack and i are listed quite a few times under the best submissions for P3