Spring 2021 Virtual Contest


X-Camp Academy


Registration is open for all of our divisions! Please refer to the links below. If you are unsure which division to register for, please refer to our guidelines below.

Advanced Division

Intermediate Division

Novice Division

Basic Information

View detailed logistics about the contest in our logistics document.

Time: 1:00PM – 5:00PM

Team Sizes: 1-4 people per team.

Cost: Free

Languages: Java, C++, C, Python 2, Python 3

Divisions: Novice, Intermediate, or Advanced


Novice: A division for programmers who have just started programming in the past few months and are not fully familiar with the syntax of commands.

Intermediate: A division for programmers who have started programming recently and/or are in one programming class but are reasonably proficient in a specific language.

Advanced: A division for programmers with more experience, typically having finished one programming class and are very knowledgeable about a specific language.

Note: These are guidelines, not rules. You may choose to sign up for either division.


  1. Each team member must be in middle school or high school.
  2. Teams must not receive any help from anyone outside the team.
  3. Teams may use multiple computers.
  4. Pre-written code is allowed, as well as online reference guides.


1:00: Keynote Speech, Introduction to rules and schedule.

1:30: Contest begins.

4:30: Announce winners. Raffle.

5:00: End of the contest.


Overview: There will be 15 programming problems sorted by difficulty from easiest to hardest. The points awarded is based off of number of test cases correct and difficulty of the problem. The correct output of for each test case of an easy problem awards 10 points, of a medium problem awards 20 points, of a difficult problem awards 30 points. Most problems will have five test cases; full score is 1,500 points. Teams will be restricted to ten submissions per problem. Submissions will be made on the contest page after you login.

The three teams with the most amount of points will receive medals and Amazon gift cards. If there is a tie, the winner is decided by the team that completed their last problem first.

Input and Output: The input and output will all be standard input and standard output. Use the system input and print systems for your specified language.


Want to sharpen your programming skills with your team before the contest? Solve old TeamsCode problems live through CodeJoust!

Note: CodeJoust is currently in beta, but is being rapidly developed. For suggestions or bug reports, contact [email protected].

Sample Problem

You are facing off against a golem. In order to beat it, you must cast a magic spell. You are given two numbers. Your task is to find the largest number possible either by adding or multiplying the two numbers together in order to cast the strongest spell.

Input: The first line contains an integer L. The following L lines will each contain two numbers, N1 and N2.

Output: For each set of two numbers, print the largest number possible through either adding or multiplying the two numbers together.

Example Input:

6 12
1 54
2 2
9 -17
-7 -7

Example Output:


For code solutions to this golem problem, please check out our Java, Python, or C++ solutions depending on your preferred language.


Partner: X-Camp

X-Camp Academy

About X-Camp Academy:

X-Camp Academy was founded in August 2017 in Silicon Valley by two Google software engineers. Their mission is to inspire and cultivate the next generation of computer science and artificial intelligence talents, which they believe will have a positive impact on the future. The younger generations will have unlimited opportunities at X-Camp for many reasons.

They have a unique curriculum, inherited from Mr. Xianyou Xu, a Chinese diamond-level international gold medal coach. Mr. Xu has been training students to participate in programming competitions, especially Olympics in Informatics, for more than 20 years.

X-Camp prioritizes personalized education, with problem sets tailored to each student’s needs and an enrollment system that encourages grade skipping. By participating in team-based competitions and facilitating frequent group study sessions, X-Camp also fosters an environment of collaboration to build each student’s confidence in their ability to code.

X-Camp’s staff are composed of senior software engineers from major technology companies in Silicon Valley. They have strong support from international and domestic competition winners.

For more information, please visit their website.