Summer 2021 Virtual Programming Contest

Jul 31, 2021 at Youtube Live


X-Camp Academy

Bronze Sponsors


The contest is over, but you can solve the problems here:


Advanced Division

1st - mike4235 fanclub: Trần Xuân Bách, Phạm Quốc Hùng, Đào Ngọc Hà, Nguyễn Quang Minh [2070 points]

2nd - blair blezers: Gabriel Wu, Timothy Qian, Colin Galen, Maxwell Zhang [1860 points]

3rd - Fishy Yum: Alex Fan, Jason Gonzalez, Eggag, Maxwell You [1480 points]

4th - RonderosDelUwu: Gustavo Andrés Orosco Zavala, Jose Leonidas Garcia, Jorge Fiestas [1130 points]

5th - X-Camp chorgle schitzel: David Lee, Alex Chen, Brian Xue, Taiga Nishida [1080 points]

Intermediate Division

1st - orz Orz: Nikita Kozlov, Artem Trubnikov, Ivan Gusev [2400 points]

2nd - nsve: Vo Dac Bao An, Humphrey Xu, Guzun Veaceslav, Nika Tamliani [2250 points]


1st - red team: Natalie Hsia, Andrew Qin, Neel Kolhe, Eric Wang [2220 points]

Basic Information


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

Join the Discord Server to ask questions!


  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.

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.

Partner: DigiPen


About DigiPen:

Since 1988, DigiPen Institute of Technology has been preparing students to succeed as skilled engineers, artists, and designers in the growing technology industries. An educational pioneer, DigiPen is the first college in the world to offer a bachelor’s degree in video game technology and development. Today, they offer a wide range of technology-focused programs, all with an eye toward the career opportunities of tomorrow.

Their programs are intentionally designed to reflect the standards and practices of the professional industries: Small teams with different backgrounds and skills collaborate to apply their knowledge, overcome challenges, and build amazing things together.

DigiPen graduates go on to rewarding careers at some of the world’s leading tech companies, game studios, and startups. If you play video games, you’ve probably played at least one of more than 1,600 commercial titles developed by a DigiPen graduate.

Some highlights:

· Ranked in the top 5 of The Princeton Review’s Top Game Design Schools for the last 12 years

· DigiPen student games have won 57 Independent Games Festival awards (more than any other school)

· DigiPen graduates are credited on 1,600+ commercial game titles

For more information, please visit their website.

Competitive Programming Initiative


If you're interested in more high school programming contests, sign up for the Competitive Programming Initiative's contest newsletter.