Skip to content

Commit

Permalink
Update solution.py
Browse files Browse the repository at this point in the history
  • Loading branch information
rhs0266 authored May 17, 2023
1 parent bf51fb0 commit ea5abca
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
# Input
n, k = map(int, sys.stdin.readline().strip().split())
food = list(map(int, sys.stdin.readline().strip().split()))
food.insert(0, 0)

ans = 0
def dfs(idx: int, energy: int):
Expand All @@ -24,4 +23,4 @@ def dfs(idx: int, energy: int):


dfs(0, 0)
print(ans)
print(ans)

0 comments on commit ea5abca

Please sign in to comment.