« All Events
2:30 PM – Intro To Competitive Programming – Gamas
October 21, 2023 @ 2:30 pm - 3:30 pm
Today We Did
- We discussed ShellGame USACO problem.
- We discussed the FencePainting USACO problem.
Homework
- Do problem in USACO Speeding Ticket below.
- http://www.usaco.org/index.php?page=viewproblem2&cpid=568
- Make sure to read the problem carefully. Look at the sample input and expected output to understand the question properly. There is no point in doing the code if you don’t understand the problem.
- Use the code I provided in the ShellGame to read the input file. Don’t read the input from the shell. You need to read the input from speeding.in file.
- In your project, create a new file speeding.in. Inside this file, you need to add the following content. The expected output is 5.
3 3
40 75
50 35
10 45
40 76
20 30
40 40
- Also try the following input files from http://www.usaco.org/current/data/speeding_bronze_dec15.zip