"""calculate LCM for numbers through stdin"""
import sys
from math import lcm
input_lines = sys.stdin.read().splitlines()
numbers = [int(line) for line in input_lines]
print(f"part 2: {lcm(*numbers)}")
![]() |
index : advent-of-code-2023 | |
| My solutions for Advent of Code 2023. The language used may be anything. | alifeee |
| aboutsummaryrefslogtreecommitdiff |
"""calculate LCM for numbers through stdin"""
import sys
from math import lcm
input_lines = sys.stdin.read().splitlines()
numbers = [int(line) for line in input_lines]
print(f"part 2: {lcm(*numbers)}")