webmaster: Sven Koenig

USC Programming Contest

Spring 2019 USC Programming Contest


The problems are available as a PDF document. The table below contains sample solutions programmed by participants during the contest, as well as the input data and correct solutions used by the judges.

ProblemC/C++ solutionJava solutionJudges' solutionInputCorrect Output
A: Cap SizeTianyi ChenAlexander Feinsteincap.cppcap.incap.out
B: First-Name basisMelanie HamasakiHemant Kundafirst.cppfirst.infirst.out
C: Mangling NamesYizhou ShenZhiyu Cainames.cppnames.innames.out
D: GPAArav AdaniAkhil Arungpa.cppgpa.ingpa.out
E: Department Receptionsno solutionno solutionfood.cppfood.infood.out
F: Jump!no solutionno solutionjump.cppjump.injump.out


There were 37 participants. 24 students solved at least one problem, 17 solved at least two problems, 10 solved at least 3, and two students solved 4 problems.

RankNameProblems solvedcumulative time
1Tianyi Chen (CS MS)4216
2Melanie Hamasaki (CSCI Senior)4395
3Can Chen (CSCI Sophomore)3199
4Yizhou Sheng (CECS Sophomore)3402

The complete final standings are also available.

Cash prizes for the top participants, food, T-shirts for everyone, swags, etc. were provided thanks to our sponsors Google, Northrop Grumman, and Marconi Foundation. Computer games for many participants were also donated by Electronic Arts.

We would like to thank VSoE for making the labs available for the contest. David Kempe wrote the problem set. Yeji Shen, Hrayr Harutyunyan, Changyu Zhu, and Chenhui Zhu provided standard solutions and test cases. Alina Abidi, Erdong Hu, and Shin Yee Tan volunteered as contest helpers.


Pictures of the contest are available for your viewing pleasure.

Overview Details Rules

Sponsors in Spring 2019
Electronic Arts
Northrop Grumman
Marconi Foundation