Repository of problems and their full solutions from the 2018 UMD High School Programming Competition (website, final scoreboard).
- 2018-problem-writeup.pdf: a whitepaper describing each of eight competition problems, along with input/output format and some sample input/output.
- 2018-solutions.pptx/pdf: high-level solutions for the problems; full Java implementations can be found in
/src
below. - 2018-introduction.pptx: intro presentation given to students before the practice round.
This is a single Eclipse project containing eight packages, one per problem used in the main competition. Note that the actual Java files used in the competition were slightly modified (to remove the leading package statement at the header of each Java file). The files are otherwise unchanged. To run each problem, either:
- Run the Java file as-is in Eclipse, and feed in a file or manual input via STDIN; or
- Compile with
javac ProblemName.java
and then run withjava ProblemName < Input.in
from the command line (this is more in line with how the competition tested solutions).
Problems contain both the test skeleton (ProblemName.java
) given to teams and a solution (ProblemName_solution.java
) created by one of the competition judges. Caveat emptor on the solutions.
Secret test inputs and matching outputs that were run through PC2 during the actual competition. We note that a few problems were graded mostly manually - specifically P2, P5, and P6, due to some issues with diffing their outputs.
###Problem Creators, Solution Fixers, and Judges:
###Motivation for some of the Problems: