webmaster: Sven Koenig

USC Programming Contest

Spring 2018 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: Tide PodsMark Klein Δno solutiontidepods.cpptidepods.intidepods.out
B: Blowin’ in the WindTianlei Wang Δno solutionblowin.cppblowin.inblowin.out
C: Racial DiscriminationPengda Xiang Δno solutionracial.cppracial.inracial.out
D: Non-Violent ProtestsCallum Pe Δno solutionriot.cppriot.inriot.out
E: Peace SignChangyu Zhu Δno solutionpeace.cpppeace.inpeace.out
F: Gun ControlChenhui Zhu Δno solutiongun.cppgun.ingun.out


There were 34 participants. 22 students solved at least one problem, 15 solved at least two problems, 7 solved at least 3, 2 solved 4, 2 solved 5 and 2 solved all problems.

RankNameProblems solvedcumulative time
1Changyu Zhu (CS Freshman)6321
2Pengda Xiang (CS PhD)6462
3Tianlei Wang(CS Master)5704
4Chenhui Zhu (CS Junior)5877

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. 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, Ruixin Qiang, Erdong Hu and Yuhang Song provided standard solutions and test cases. Erdong Hu and Chubing Huang also volunteered as contest judges.


Pictures of the contest are available for your viewing pleasure.

Overview Details Rules

Sponsors in Spring 2019
Electronic Arts
Northrop Grumman
Marconi Foundation