webmaster: Sven Koenig

USC Programming Contest

Fall 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: Teenage MutantMark KleinRunwei Linmutant.cppmutant.inmutant.out
B: FairnessPengda Xiangno solutionfairness.cppfairness.infairness.out
C: CrazinessTianlei WangRobert Diersingcraziness.cppcraziness.incraziness.out
D: SiblingsChenhui ZhuHemant Kundasiblings.cppsiblings.insiblings.out
E: Family PortraitChangyu Zhuno solutionportrait.cppportrait.inportrait.out
F: JuniorJulia LinHemant Kundajunior.cppjunior.injunior.out


There were 48 participants. 37 students solved at least one problem, 24 solved at least two problems, 14 solved at least 3, 2 solved 4, 2 solved 5 and 2 solved all problems.

RankNameProblems solvedcumulative time
1Changyu Zhu (CS Sophomore)6243
2Pengda Xiang (CS PhD)6720
3Mark Klein (CS Junior)5463
4Tianlei Wang (CS Master)5754

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, Justin Cheng, Ruixin Qiang provided standard solutions and test cases. Chubing Huang, Erdong Hu, and several ACM student chapter officers volunteered as contest helpers and judges. The T-shirt was designed by Saty Raghavachary.


Pictures of the contest are available for your viewing pleasure.

Overview Details Rules

Sponsors in Spring 2019
Electronic Arts
Northrop Grumman
Marconi Foundation