American Young Coder (AYC)

Loading Events

« All Events

  • This event has passed.

2:30 PM – Intro To Competitive Programming – Gamas

October 21, 2023 @ 2:30 pm - 3:30 pm

 Today We Did
  1. We discussed ShellGame USACO problem.
  2. We discussed the FencePainting USACO problem.
Homework
  1. Do problem in USACO Speeding Ticket below.
    1. http://www.usaco.org/index.php?page=viewproblem2&cpid=568
  2. 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.
  3. 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.
  4. In your project, create a new file speeding.in. Inside this file, you need to add the following content. The expected output is 5.
    1. 3 3
      40 75
      50 35
      10 45
      40 76
      20 30
      40 40
  5. Also try the following input files from http://www.usaco.org/current/data/speeding_bronze_dec15.zip

Details

Date:
October 21, 2023
Time:
2:30 pm - 3:30 pm
Verified by MonsterInsights