Fixed spliting at spaces issue

This commit is contained in:
2025-09-18 08:10:15 -04:00
parent 070d6dbe3e
commit 5aba700f48
4 changed files with 10 additions and 11 deletions

View File

@@ -48,7 +48,7 @@ def construct(sections: list[int], target: int) -> dict[int, int]:
# All modules for CS 412 must include a main method that allows it
# to imported and invoked from other python scripts
def main():
sections: list[int] = list(map(int, input().split(" ")))
sections: list[int] = list(map(int, input().split()))
target: int = int(input())
best_sections = construct(sections, target)