webmaster: Sven Koenig

USC Programming Contest

Spring 2007 USC Programming Contest (28 April 2007)


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 - Overlap!John GrotelueschenDenis Tulskiyoverlap.coverlap.inoverlap.out
B - Study DaysCheng-Wei LinKai Ningstudies.cppstudies.instudies.out
C - Exam Seatingno solutionno solutionseating.cppseating.inseating.out
D - Yes or No?Andrew McNameeElliot Leeyesorno.cyesorno.inyesorno.out
E - Essay Writingno solutionno solutionessays.cessays.inessays.out
F - Party!Morgan BrownAadarsh Patelparty.cparty.inparty.out


There were 34 participants. Of those, 12 students solved at least one problem, 8 solved at least two problems, and 7 students at least 3 problems. Both of the top two performers, Kai Ning and Cheng-Wei Lin, solved four problems. The top five participants were the following.

RankNameProblems solvedcumulative time
1Kai Ning (MAE MS)4534
2Cheng-Wei Lin (CECS Sophomore)4786
3Morgan Brown (CSCI Junior)3323
4Andrew McNamee (CECS Senior)3369
5Aadarsh Patel (CECS Freshman)3527

The complete final standings are also available.

Cash prizes for the top four participants were sponsored by Language Weaver. Computer games and T-shirts for additional high placing participants were sponsored by Electronic Arts. The food was sponsored by VSoE.

We would also like to thank several volunteers who made this programming contest possible. ITP made the labs available for the contest. Marcos Vieira, Marin Kobilarov, and Li Zhang developed sample solutions and helped as contest judges. UPE and 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 now.

Overview Details Rules

Sponsors in Spring 2019
Electronic Arts
Northrop Grumman
Marconi Foundation