Hello, World!

Welcome to the PEG Online Judge. This site was created by members of Woburn Collegiate Institute's Programming Enrichment Group as a resource for competitive programmers everywhere. We also run PEGWiki, a site for information and tutorials of algorithms.

Currently, we have 1077 problems, 361703 submissions, 277 analyses, and support for 15 languages.

If you are new here, register an account and get familiar with the judge by solving A plus B. Alternatively, you can try a random problem that you haven't solved.

Announcements (See All)

CCO 2016 Problems Added

by Alex on May 14, 2016 - 9:57:47 pm UTC

Woburn Challenge Finals Results

by Alex on May 07, 2016 - 3:37:23 am UTC
Thank you all who joined us for the Woburn Challenge 2015-16 on-site finals this afternoon! After an unbelievably tight race, Richmond Green Secondary School managed to edge out the valiant competition from Don Mills Collegiate Institute (by a mere 1 point within the last 6 minutes of the contest!) to ultimately secure 1st place in the senior division. Meanwhile, Thornhill Secondary School clinched their own champion spot in the junior division. Though this was arguably our toughest contest of the year, we still believe that there was something there for everyone.

The contest problems have been cloned to the main judge: J1, J2, J3/S1, J4/S2, J5/S3, S4, S5.
Problems, solutions, and test data will be posted shortly to this page.

The senior division prizewinners are:
  • Bill Zheng, Josh Jung, and Henry Gao of Richmond Green Secondary School ($250)
  • Timothy Li, Patrick Au, and Kevin Wang of Don Mills Collegiate Institute ($200)
  • Jason Yuen and William Wen of Pierre Elliott Trudeau High School ($150)
  • Jason Kuo and Robert Cummings of A. Y. Jackson Secondary School ($75)
The junior division prizewinners are:
  • Max Li and Alexander Kursell of Thornhill Secondary School ($150)
  • Kevin Wang and Saswata Gupta of Glenforest Secondary School ($100)
  • Alexander Shah and Callum Moseley of Richmond Hill High School ($75)
Congratulations! We would love to hear your feedback about how to improve for next year, so please send them to That said, we hope you enjoyed the last round of the season and look forward to bringing you many more exciting challenges in the years to come!

Woburn Challenge round 4 results are now available!

by Alex on Apr 13, 2016 - 2:14:15 am UTC
What a great first year of the Woburn Challenge relaunch! Thank you to everyone for participating in the online contests and helping us revive this meaningful computer science tradition. We hope you found our problems to be both fun and challenging. For the future, we hope to incorporate all the feedback you have sent us to make these challenges an even more engaging experience. Finally, we ask you to please help spread the word about the contest during the next season.

Click here for full results to the contest. Problems, solutions, and test data are now available here.

The senior division prizewinners for this round are:
  • Timothy Li of Don Mills Collegiate Institute ($200)
  • Jason Yuen of Pierre Elliott Trudeau High School ($100)
  • Ahmed Sabie of Glenforest Secondary School ($50)
  • Jeffrey Xiao of University of Toronto Schools ($50)
  • Bill Zheng of Richmond Green Secondary School ($50)
The junior division prizewinners for this round are:
  • Max Li of Thornhill Secondary School ($50)
  • John Phillips of Lisgar Collegiate Institute ($25)
  • Alexander Kursell of Thornhill Secondary School ($25)
Congratulations! These prizes will be distributed as Visa gift cards, and we will be contacting your teachers shortly about sending them out. Remember that we will have many prizes in the finals as well as for next year, so keep on practicing!

Students who have qualified their schools for the final on-site round on Friday May 6th, will receive an email shortly with instructions. Teacher contacts listed by these students will be sent instructions on registration, and students should confirm with their teachers.

Pinned Posts

Recent Comments