American Young Coder

AYC logo
Loading Events

« All Events

  • This event has passed.

6 PM – USACO Bronze – Gamas

September 11 @ 6:00 pm - 7:00 pm

Today We Did
  1. We continued with Balancing Bacteria brute force. Only 5 out of 15 test cases passed.
Homework
  1. Try to find the greedy algorithm for this Balancing Bacteria so you don’t have to do nested for loop. What you need to find is the “next adjustment” formula. Consider the following data point when finding the formula
    1. How many spray that increase the bacteria
    2. How many spray that decrease the bacteria
    3. Previous Adjustment
    4. Current patch value after adjustment.

Details

Date:
September 11
Time:
6:00 pm - 7:00 pm