Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 7, 2024
1 parent 270dacf commit 3190757
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions solutions/gold/usaco-993.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,17 @@ public class TimeIsMooney {
```py
MAX_DAYS = 1000

with open("time.in", "r" ) as read:
n, m, c = map(int, read.readline().strip().split())
earn = list(map(int, read.readline().strip().split()))
with open("time.in", "r") as read:
n, m, c = map(int, read.readline().strip().split())
earn = list(map(int, read.readline().strip().split()))

adj = [[] for _ in range(n)]
adj = [[] for _ in range(n)]

for _ in range(m):
u, v = map(int, read.readline().strip().split())
u -= 1
v -= 1
adj[u].append(v)
for _ in range(m):
u, v = map(int, read.readline().strip().split())
u -= 1
v -= 1
adj[u].append(v)

# dp[i][j] = the max money that Bessie can make on day i if she ends in city j
dp = [[-1] * n for _ in range(MAX_DAYS + 1)]
Expand Down

0 comments on commit 3190757

Please sign in to comment.