Files
Algorithm/백준/1850.py
2026-04-11 11:48:15 +09:00

18 lines
244 B
Python

import math
import sys
input = sys.stdin.readline
A, B = map(int, input().split())
def GCD(a, b):
if b==0:
return a
else:
return GCD(b, a%b)
result = GCD(A, B)
while result > 0 :
print(1, end='')
result -= 1