project-python3/lesson2.4_6.py
2025-12-15 14:14:56 +05:00

9 lines
176 B
Python

'''****** Задание ********
*НОД 2.0.
'''
n, a = int(input()), int(input())
for _ in range(n - 1):
b = int(input())
while b:
a, b = b, a % b
print(a)