Skip to content

Commit

Permalink
Update usaco-1276.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
freakin23 authored Nov 6, 2024
1 parent c5f2518 commit 3d71b50
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions solutions/bronze/usaco-1276.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,7 @@ int main() {
```py
cows = [] # List to store {s, t, c} for each cow
air_conditioners = [] # List to store {a, b, p, m} for each air conditioner
min_cost = float(
"inf"
) # the minimum amount of money needed to keep all cows comfortable
min_cost = float("inf") # the minimum amount of money needed to keep all cows comfortable


def update():
Expand Down Expand Up @@ -169,7 +167,7 @@ def update():


def search(i: int):
"""Expand the subset, represented by 'uses', by choosing to (not) use the i-th air conditioner"
"""Expand the subset, represented by 'uses', by choosing to (not) use the i-th air conditioner"""
if i == M:
update()
else:
Expand Down

0 comments on commit 3d71b50

Please sign in to comment.