2020 Spring Coding Bowl
This is the 2020 contest page. To see details for the current year, please visit this page.
The Spring Coding Bowl was previously known as the UCC Coding Competition. Below was the original webpage for the 2020 UCC Coding Competition.
We wish everyone safe and sound as we are all practicing social distancing to prevent the spread of COVID-19. The good thing is that technology can always connect us together.
The UCC Coding and Algorithms Academy is proud to present the first annual UCC Coding Competition on April 23, 2020.
2020 Official Results
Thank you for participating! With contestants from 11 different schools, the first annual UCC Coding Competition was a great success!
2020 Results & Top Performers 2020 Problems 2020 Solutions
Coders of the Year (Perfect scores, ranked by time of submission)
William Li, University of Toronto Schools
Victor Gao, Victoria Park C.I.
Moses Xu, Appleby College
Allen Pei, University of Toronto Schools
Alex Zhang, St. Andrew's College
Joshua Li, Upper Canada College
Arthur Wang, Upper Canada College
Maxwell Cruickshanks, St. Andrew's College
Top Schools
Based on the sum of the top three scores from each school:
First Place: Upper Canada College (Team Score of 141)
Second Place: St. Andrew's College (Team Score of 130)
Third Place: Hillfield Strathallan College (Team Score of 120)
Details
This is a 2-hour, 5-problem competition that will run from 1:00PM to 3:00PM on April 23, 2020 (Eastern Daylight Time). Due to current conditions the contest will be hosted online through this webpage this year.
Each problem is worth 10 marks, with approximate level of difficulty ranging from CCC Junior 2 to CCC Senior 3. Ties will be broken by time of submission of the final answer form.
The contest is open to all students in the UCC Upper School and other participating schools.
Instructions
At 1:00PM (Eastern Daylight Time) on April 23, a link to the problem set and test data will be posted below.
The job is to solve the problems (using any method and coding language). Each problem will have multiple test cases following the input specification detailed within each problem. These test cases will be posted below and can be copied to clipboard using the provided button.
The correct answer for each test case is an integer between 1 and 1000. You should run each test case through your program and produce the correct answer.
There are also non-scored, example test cases similar to the scored ones with correct answers provided. These are provided so that you can test your program.
Write down your answers to each test case somewhere else first - they must be submitted together through the Google Form linked below before 3:00 PM. You will only have one attempt to submit this form. Once you submit this form, your contest is over and you will not be allowed to make changes. If your form isn't submitted by 3:01 PM, your result will not be counted.
SAVE YOUR CODE FILES! You may be required to send in your code to prove the authenticity of your work.
Detailed Step-by-Step InstructionsRules
Do not communicate with other contestants or individuals before the contest window ends at 3:00PM. This includes communication online or through social media.
Internet use is allowed to look up language and syntax on programming languages' official documentation only. Searching on sites like StackOverflow, GeeksForGeeks, or YouTube is not permitted.
Do not consult or use any previously written program by yourself or others.
Attempts to circumvent the contest system are strictly prohibited.
IMPROPER CONDUCT OR VIOLATION OF RULES WILL RESULT IN SCORE OF 0, PERMANENT BAN AND NOTIFICATION OF ACADEMIC ADVISOR!
Tips
Read each problem! While the problems are generally in order of difficulty this might not necessarily be the case.
The first test case (worth 1/10) for every problem can be solved without the need for coding - comprehension of the problem is enough.
Take advantage of part marks! Partial subtasks will be detailed in the problem statements and the point value for each test case is clearly indicated.
Make sure you use the provided example test cases to test your program first!
Write down your answers somewhere other than the Google Form as well. If you accidentally close the Google Form your answers will not be saved.
Leave yourself some time (5 min) to fill out and complete the Google Form. Form responses later than 3:01PM will not be accepted.
For clarifications about the rules or problem statements, contact kevin.liu@ucc.on.ca.
2020 Official Problem Set
The competition is now over. Thank you for participating! The results have been posted.
View the 2020 Problems!Test Data Provided Below. Click each problem to reveal.
REMEMBER: if the desired output number is greater than 1000, only submit the last three digits of this number.
P1 - Example Test Case 1 (Use this to test your program!)
Expected output: 205
P1 - Scored Test Case 1 (1/10 Marks)
P1 - Scored Test Case 2 (4/10 Marks)
P1 - Scored Test Case 3 (5/10 Marks)
REMEMBER: if the desired output number is greater than 1000, only submit the last three digits of this number.
P2 - Example Test Case 1 (Use this to test your program!)
Expected output: 161
P2 - Scored Test Case 1 (1/10 Marks)
P2 - Scored Test Case 2 (4/10 Marks)
P2 - Scored Test Case 3 (5/10 Marks)
REMEMBER: if the desired output number is greater than 1000, only submit the last three digits of this number.
P3 - Example Test Case 1 (Use this to test your program!)
Expected output: 872
P3 - Scored Test Case 1 (1/10 Marks)
P3 - Scored Test Case 2 (4/10 Marks)
P3 - Scored Test Case 3 (5/10 Marks)
REMEMBER: if the desired output number is greater than 1000, only submit the last three digits of this number.
P4 - Example Test Case 1 (Use this to test your program!)
Expected output: 420
P4 - Scored Test Case 1 (1/10 Marks)
P4 - Scored Test Case 2 (4/10 Marks)
P4 - Scored Test Case 3 (5/10 Marks)
P5 - Example Test Case 1 (Use this to test your program!)
Expected output: 44
P5 - Scored Test Case 1 (1/10 Marks)
P5 - Scored Test Case 2 (4/10 Marks)
P5 - Scored Test Case 3 (5/10 Marks)
Answer Form
Use the form below to submit your FINAL answers before 3PM. SUBMISSIONS ARE FINAL - ANSWERS CANNOT BE MODIFIED AFTER SUBMISSION! The time of submission will be used to break ties.
Submission Form