webmaster: Sven Koenig

USC Programming Contest

Fall 2009 USC Programming Contest (19 September 2009)


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' C solutionInputCorrect Output
A - LobbyingYixuan WuKeegan Mosleylobbying.cpplobbying.inlobbying.out
B - Emergency RoomRyan BrownCarey Zhangroom.cpproom.inroom.out
C - Social Network VaccinationsAadarsh Patelno solutionnetwork.cppnetwork.innetwork.out
D - Cherry Pickingno solutionno solutioncherry.ccherry.incherry.out
E - Gadget PurchasesNoel OverkampDenis Tulskiygadgets.cppgadgets.ingadgets.out
F - Health Plan Comparisonno solutionno solutionplans.cppplans.inplans.out


There were 67 participants, limited only by the number of machines available in the lab. 50 students solved at least one problem, 38 solved at least two problems, and 5 students solved 3 problems. The top five participants were the following.

RankNameProblems solvedcumulative time
1Yixuan Wu (CSCI MS)3196
2Carey Zhang (EE Freshman)3260
3Ryan Brown (CECS Senior)3302
4Aadarsh Patel (CECS Senior)3371
5Keegan Mosley (CSCI MS)3412

The complete final standings are also available.

Cash prizes for the top four participants, food, T-shirts for everyone, etc. were provided thanks to our sponsors Lockheed Martin, Language Weaver, Sun Microsystems, and Google. Computer games for many participants were also donated by Electronic Arts.

We would also like to thank several volunteers who made this programming contest possible. VSoE made the labs available for the contest, and provided competent technical support. Marcos Vieira, Kai Song, and Akshat Gupta developed sample solutions and helped as contest judges. The ACM student chapter provided volunteers for contest setup, checkin, technical help, food, and other aspects of the contest.


Pictures of the contest are available for your viewing pleasure. The Daily Trojan also took some more pictures.

Overview Details Rules

Sponsors in Spring 2019
Electronic Arts
Northrop Grumman
Marconi Foundation