Problem:


Score : 200 points

Problem Statement

Given are 1-digit positive integers a and b. Consider these two strings: the concatenation of b copies of the digit a, and the concatenation of a copies of the digit b. Which of these is lexicographically smaller?

Constraints

1 \leq a \leq 9

1 \leq b \leq 9

a and b are integers.

Input

Input is given from Standard Input in the following format:

a b

Output

Print the lexicographically smaller of the two strings. (If the two strings are equal, print one of them.)

Sample Input 1

4 3

Sample Output 1

3333

We have two strings 444 and 3333. Between them, 3333 is the lexicographically smaller.

Sample Input 2

7 7

Sample Output 2

7777777



Sample input:
4 3


Sample output:
3333

Submission status: Wrong Answer

Solution code:

a, b = map(str, input().split())

A = int(a * int(b))
B = int(b * int(a))

if A > B:
  print(A)
else:
  print(B)
  
print(B)

Submission status: Wrong Answer

Solution code:
s_list = list(map(int, input().split()))
final_list = [(int(str(s_list[0]) * s_list[1]))]
final_list.append(int(str(s_list[1]) * s_list[0]))
final_list.sort()
print(final_list[0])

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))

ab = str(str(a) * b)
ba = str(str(b) * a)

print(sorted([ab, ba]))
print(sorted([ab, ba])[0])

Submission status: Wrong Answer

Solution code:
a,b=list(map(int,input().split()))
A=B=''
for i in range(b+1):
  A=A+str(a)
for i in range(a+1):
  B=B+str(b)

print(min(A,B))

Submission status: Wrong Answer

Solution code:
hoge = input().split(" ")
a=""
b=""
for i in range(int(hoge[1])):
  a += hoge[0]
for i in range(int(hoge[0])):
  b += hoge[1]
txt = [a,b]
txt.sort
print(str(txt[0]))

Submission status: Wrong Answer

Solution code:
L, R = map(int,input().split())
l = str(L)
r = str(R)
last_l = ""
last_r = ""
for i in range(L):
    last_l += l 
for i in range(R):
    last_r += r 
    
if L > R:
    print(last_r)
else:
    print(last_l)

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))

aa = str(a)
bb = ''
for i in range(a):
	bb += str(b)

for i in range(b):
	aa += str(a)


if aa > bb:
	print(bb)
else:
	print(aa)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
ans = ""
if a>b:
    for i in range(a):
        ans = ans + str(a)
    print(ans)
else:
    for i in range(b):
        ans = ans + str(b)
    print(ans)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a >= b:
    ans = 0
    for i in range(a):
        ans += b*(10**i)
else:
    ans = 0
    for i in range(a):
        ans += a*(10**i)
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = input().split()
print(a*int(b))if a<b else b*int(a)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
A=str(a)*b
B=str(b)*a
if len(A)>len(B):
  print(B)
elif len(B)>len(A):
  print(A)
else:
  for i in range(len(A)):
    if int(A[i])>int(B[i]):
      print(A)
    elif int(A[i])<int(B[i]):
      print(B)
  print(A)

Submission status: Wrong Answer

Solution code:
import sys

A,B = map(int, raw_input().split())

print A,B

if A > B:
    for i in range(A):
        sys.stdout.write(str(B))
    sys.stdout.write("\n")
else:
    for i in range(B):
        sys.stdout.write(str(A))
    sys.stdout.write("\n")

Submission status: Wrong Answer

Solution code:
a, b = input().split()

A = a * int(b)
B = b * int(a)

if a<b and a == b:
    print(A)
else:
    print(B)

Submission status: Wrong Answer

Solution code:
#!/usr/bin/env python3

a, b = map(int, input().split())

a_str = ''
for i in range(b):
    a_str += str(a)

b_str = ''
for i in range(a):
    b_str += str(b)

# print(a_str, b_str)

if a_str >= b_str:
    print(b_str)
else:
    print(b_str)

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if (A==B):
    Yes=[str(A)]*A

elif (A>B):
    Yes=[str(B)]*B
else:
    Yes=[str(A)]*A

s = ''.join(Yes)
print(s)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a > b:
    print (int(str(b)*a))
if a == b: print (int(str(a)*a))
else: print(int(str(a)*b))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if(b>a):
    for x in range(a):
        print(b)
else:
    for x in range(b):
        print(a)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
if (int(b) <= int(a)): print(b * int(a)); exit(0)
else: print(a * int(a)); exit(0)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
n=""
if a<b:
    for i in range(a):
        n=(str(n)+str(a))
    print(n)
else:
    for i in range(b):
        n=(str(n)+str(b))
    print(n)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
_a = int(a)
_b = int(a)

if _a >= _b:
    print(''.join([b for i in range(_a)]))
else:
    print(''.join([a for i in range(_b)]))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a<=b:
    print(str(a)*a)
else:
    print(str(b)*b)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if x<y:
  z=0
  for i in range(0,x):
    z+=10**i*x
  print(z)
else:
  z=0
  for i in range(0,y):
    z+=10**i*y
  print(z)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

for i in range(max(a,b)):
    print(min(a,b))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a > b:
    print ((str(b)*a))
if a == b: print (str(a)*a)
else: print(str(a)*b)

Submission status: Wrong Answer

Solution code:
x,y=map(int,input().split())
if x<y:
  z=0
  for i in range(0,x+1):
    z+=10**i*x
  print(z)
else:
  z=0
  for i in range(0,y+1):
    z+=10**i*y
  print(z)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
if (a * int(b) > b * int(a)): print(b * int(a)); exit(0)
else: print(a * int(a)); exit(0)

Submission status: Wrong Answer

Solution code:
c = input().split(" ")
a = int(c[0])
b = int(c[1])

a_column = []
if a <= b:
    for i in range(b):
        a_column.append(a)
    print(a_column)

b_column = []
if b < a:
    for i in range(a):
        b_column.append(b)
    print(b_column)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

l = "a"*b
m = "b"*a

if l < m:
    print(l)
else:
    print(m)

Submission status: Wrong Answer

Solution code:
#problem-b
a,b = map(int, input().split())
print(str(a)*b if a>=b else str(b)*a)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())


a_s = ""
b_s = ""

for _ in range(a):
    a_s = a_s + str(a)

for _ in range(b):
    b_s = b_s + str(b)

if a_s <= b_s:
    print(a_s)
else:
    print(b_s)

Submission status: Wrong Answer

Solution code:
a, b = list(map(int, input().split()))

aa = str(a)
bb = ''
for i in range(a):
	bb += str(b)

for i in range(b):
	aa += str(a)


if int(aa) > int(bb):
	print(bb)
else:
	print(aa)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

if a < b:
  print(str(a) * b)
elif b < a:
  print(str(b) * a)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if(a>=b):
  print(str(a) * b)
else:
  print(str(b)*a)

Submission status: Wrong Answer

Solution code:
a, b= map(int, input().split())

a_s = str(a)
b_s = str(b)

a_w=a_s
b_w=b_s

while a > 1:
    a_w+=a_s
    a -= 1

while b > 1:
    b_w+=b_s
    b -= 1

if(int(a_w)>=int(b_w)):
    print(int(a_w))
else:
    print(int(b_w))

Submission status: Wrong Answer

Solution code:
A, B = map(int, input().split())
if (A==B):

    Yes=[A]*A

    print(Yes)
elif (A>B):
    Yes=[B]*B
    print(Yes)
else:
    Yes=[A]*A
    print(Yes)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())

x = 0
for i in range(0,b):
    x+=a*(10**i)

x = str(x)
y = 0
for j in range(0,a):
    y+=b*(10**j)
y = str(y)
if x>=y:
    print(y)

else:
    print(y)

Submission status: Wrong Answer

Solution code:
a,b = input().split()
a = int(a)
b = int(b)
astr = ""
bstr = ""
for i in range(0,a):
	astr += str(a)

for i in range(0,b):
	bstr += str(b)

if ord(astr[:1]) > ord(bstr[:1]):
	print(bstr)
elif ord(astr[:1]) < ord(bstr[:1]):
	print(astr)
else:
	print(astr)

Submission status: Wrong Answer

Solution code:
a,b = map(str, input().split())

lis = []
res_a = a
res_b = b

for i in range(int(b)-1):
  res_a += a
lis.append(res_a)

for i in range(int(a)-1):
  res_b += b
lis.append(res_b)

print(int(sorted(lis)[0][0]))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
zz=str(a)*int(b)
yy=str(b)*int(a)
print(zz)
print(yy)
if(zz<yy):
  print(zz)
else:
  print(yy)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
A=str(a)
B=str(b)
num_1=int(A*b)
num_2=int(B*a)
if num_1>num_2:
  print(num_2)
elif num_1<num_2:
  print(num_1)
elif num_1==num_2:
  print(num_1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
print(str(min(a,b))*min(a,b))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
A = int(pow(a, b))
B = int(pow(b, a))
if A > B:
    print(str(B))
else:
    print(str(A))

Submission status: Wrong Answer

Solution code:
b = input()
c =b.split(" ")
print(int(c[0])*c[1])

Submission status: Wrong Answer

Solution code:
a,b = input().split()
a1 = a*int(b)
a2 = b*int(a)
print(max(a1,a2))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a >= b:
    print(b)
else:
    print(a)

Submission status: Wrong Answer

Solution code:

input = list(map(int, input().split()))
A = input[0]
B = input[1]
output = []
 
output.append(str(B) * A)

output.append(str(A) * B)

output.sort

print(output[0])

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

if a >= b:
  for i in range(a): print(b)
else:
  for i in range(b): print(a)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
ans = ""
if a>b:
    for i in range(a):
        ans = ans + str(a)
    print(int(ans))
else:
    for i in range(b):
        ans = ans + str(b)
    print(int(ans))

Submission status: Wrong Answer

Solution code:
n = min([int(i) for i in input().split()])
print(str(n)*int(n))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
A = int(pow(a, b))
B = int(pow(b, a))
if A >= B:
    print(A)
else:
    print(B)

Submission status: Wrong Answer

Solution code:
import itertools
n,m = map(int,input().split())
a = b = ''
for _ in range(m):
    a += str(n)
for _ in range(n):
    b += str(m)
ans = [a,b]
print(list(itertools.permutations(ans))[0][0])

Submission status: Wrong Answer

Solution code:
def LI():
  return [int(s) for s in input().split()]
a,b = LI()

if a <= b:
  print(str(a)*a)   
else:
  print(str(b)*b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
A = int(pow(a, b))
B = int(pow(b, a))
if A > B:
    print(A)
else:
    print(B)

Submission status: Wrong Answer

Solution code:
a,b = input().split()
aa = a
bb = b

for i in range(int(b)-1):
 aa = aa + aa
for j in range(int(a)-1):
 bb = bb + b

if a < b:
    print(aa)
else:
    print(bb)

Submission status: Wrong Answer

Solution code:
tmp = input().split()
a = int(tmp[0])
b = int(tmp[1])

ans_a = a
ans_b = b
for i in range(b-1):
 ans_a = (ans_a*10) + a

for i in range(a-1):
 ans_b =(ans_b*10) + b

if ans_a < ans_b:
 print(ans_a)
elif ans_a > ans_b:
 print(ans_b)
else:
 print(ans_a)

Submission status: Wrong Answer

Solution code:
a, b = [int(i) for i in input().split()]

if(a > b):
#    for j in range (a):
    print(str(b)*a)

if(a < b):
    #for k in range (b):
    print(str(a)*b)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
A=str(a)
B=str(b)
num_1=int(A*b)
num_2=int(B*a)
if num_1>=num_2:
  print(num_2)
elif num_1<num_2:
  print(num_1)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

s = ''

for i in range(0, a):
    s += str(b)

print(s)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
a = int(a)
b = int(b)

newa = str(a)*b
newb = str(b)*a

print(min([int(newa),int(newb)]))

Submission status: Wrong Answer

Solution code:
a,b=map(int, input().split())
if a>=b:
    for i in range(a):
        print(b, end='')
else:
    for i in range(a):
        print(a, end='')

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

s1 = ''
s2 = ''

for i in range(a):
  s1 += str(a)

for i in range(b):
  s2 += str(b)
  
if a < b:
  print(s1)
else:
  print(s2)

Submission status: Wrong Answer

Solution code:
a, b = input().split()

aa = str(a*int(b))
bb = str(b*int(a))

aa = str(1000)
bb = str(111)

if aa <= bb:
  print(aa)
else:
  print(bb)

Submission status: Wrong Answer

Solution code:
a, b = input().split()

ans = min(int(a * int(b)), int(b * int(a)))
print(ans)

Submission status: Wrong Answer

Solution code:
def main():
    a, b = input().split()
    A = a*int(a)
    B = b*int(b)
    ans = sorted([A, B])
    print(ans[0])


if __name__ == "__main__":
    main()

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())
if a < b:
  print(str(a**b))
else:
  print(str(b**a))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a >= b:
    print(str(b)*a)
else :
    print(int(a)*b)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
A = a*int(b)
B = b*int(a)
if A >= B:
  print(A)
else:
  print(B)

Submission status: Wrong Answer

Solution code:
a,b=input().split()
A=str(a)*int(b)
B=str(b)*int(a)
if(str(B)>=str(A)):
  print(B)
else:
  print(A)

Submission status: Wrong Answer

Solution code:
a,b=map(str,input().split())
A=""
for i in range(int(a)):
    A=A+a
B=""
for i in range(int(b)):
    B=B+b
#print(A)
#
print(min(A,B))

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
numlist = []
if a > b:
  for i in range(a):
    numlist.append(str(a))
else:
  for i in range(b):
    numlist.append(str(b))
print("".join(numlist))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
S=max(a,b)
T=min(a,b)
A=[T for z in range(S)]
print(*A)

Submission status: Wrong Answer

Solution code:
#coding:utf-8

a, b = map(int, input().split(' '))

if a >= b:
    print(''.join([str(b)] * a))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
a_ = int(str(a)*b)
b_ = int(str(b)*a)
if len(str(a_)) > len(str(b_)):
    print(b_)
elif len(str(a_)) == len(str(b_)):
    print(min(a_, b_))
else:
    print(a_)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
s=0.111111111
if a<b:
  print(a*int(s*(10**(b-1))))
else:
  print(b*int(s*(10**(a-1))))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())

aa=[]
bb=[]
for i in range(a):
    aa.append(str(a))

for i in range(a):
    bb.append(str(b))

str1="".join(aa)
str2="".join(bb)

result=[str1,str2]

result=sorted(result)

print(result[0])

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())

myans = ''
if a > b:
    for i in range(a):
        myans += str(b)
elif b <= a:
    for i in range(b):
        myans += str(a)
print(myans)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
ans = 0

if a>b:
    for i in range(a):
        ans = ans*10 + b
if a<=b:
    for i in range(a):
        ans = ans*10 + a
        
print(ans)

Submission status: Wrong Answer

Solution code:
a = raw_input().split(" ")

l1 = a[0]*int(a[1])
l2 = a[1]*int(a[0])

print(l1, l2)

Submission status: Wrong Answer

Solution code:
A,B = map(int, input().split())
Ans = ''

if A <= B:
  for i in range(A):
    Ans = Ans + str(B)

else:
  for j in range(B):
    Ans = Ans + str(A)

print(Ans)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
    print(str(a)*b)
else:
    print(str(b)*a)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
x = int(a * int(a))
y = int(b * int(b))
print(min(x, y))

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))

ans = min(a,b)

for i in range(ans):
  print(str(ans),end="")

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
if a == b:
    print(str(a)*a)
if a < b:
    print(str(a)*b)
else:
    print(str(b)*a)

Submission status: Wrong Answer

Solution code:
import sys


def solve(inp):
    (a, b) = inp.readline().strip().split(' ')

    ab = a * int(b)
    ba = b * int(b)

    return str(max(ab, ba))


def main():
    result = solve(sys.stdin)
    if result:
        print(result)


if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = input().split()
if a >= b:
  print(a)
else:
  print(b)

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a < b:
    b = a
print(str(b)*a)

Submission status: Wrong Answer

Solution code:
# coding: utf-8
a,b = [int(x) for x in input().split(" ")]
if a<b:
    tmp = a
    a = b
    b = a
print(str(b) * a)

Submission status: Wrong Answer

Solution code:
a,b = map(int, input().split())

if a < b:
    ans = str(a)*b
else:
    ans = str(a)*b
print(ans)

Submission status: Wrong Answer

Solution code:
N,M = map(int, input().split())

print(str(max(N,M)) * min(N,M))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())

if a>b:
  print("b"*a)
else:
  print("a"*b)

Submission status: Wrong Answer

Solution code:
a, b= map(int,input().split())

if a < b:
    print(str(a)*b)
elif b > a:
    print(str(b)*a)
else:
    print(str(a)*b)

Submission status: Wrong Answer

Solution code:
a,b = input().split()
print(b*int(a))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
ans=""
if a<=b:
  ans=str(a)*b
else:
  ans=str(b)*a

Submission status: Time Limit Exceeded

Solution code:
def main():
    a, b = input().split(" ")
    i = int(a * int(b))
    j = int(b * int(a))
    numbers = [k for k in range(1, (max(i, j) + 1))]
    i_index = numbers.index(i)
    j_index = numbers.index(j)
    if i_index > j_index:
        print(i)
    else:
        print(j)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a<b:
  print(str(a)*b)
else:
  print(str(b)*a)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

a_b = str(a) * b
b_a = str(b) * a

if int(a_b[0]) >= int(b_a[0]):
    print(b_a)
else:
    print(a_b)

Submission status: Accepted

Solution code:
def resolve():
    a,b = map(int,input().split())
    A = str(a)*b
    B = str(b)*a
    print(A if A<B else B)
resolve()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

(x, y) = (a, b) if a<=b else (b, a)

for _ in range(y):
    print(x, end='')

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(str(min(a,b))*max(a,b))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
ans = ""

if a <= b:
  for i in range(b):
    ans += str(a)
elif b < a:
  for i in range(a):
    ans += str(b)

print(ans)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a <= b:
    ans = a
    for i in range(b-1):
        ans = ans * 10 + a
else:   
    ans = b     
    for i in range(a-1):
        ans = ans * 10 + b

print(ans)

Submission status: Accepted

Solution code:
def answer(a: int, b: int) -> str:
    return min(str(a) * b, str(b) * a)


def main():
    a, b = map(int, input().split())
    print(answer(a, b))


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

print((f"{a}" * b, f"{b}" * a)[b <= a])

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

ab = str(a) * b
ba = str(b) * a

if ab > ba:
    answer = ba
else:
    answer = ab
    
print(answer)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
print(str(a) * b) if a < b else print(str(b) * a)

Submission status: Accepted

Solution code:

a,b = map(int, input().split())
c=str(a)*b
d=str(b)*a

if c>d:
    print(d)
else:
    print(c)

Submission status: Accepted

Solution code:
input_line=input().rstrip().split()
num1 = int(input_line[0])
num2 = int(input_line[1])
 
if (num1 > num2):
  print(str(num2)*num1)
elif (num1 < num2):
  print(str(num1)*num2)
elif (num1 == num2):
  print(str(num1)*num2)

Submission status: Accepted

Solution code:
a,b = input().split()
a,b = a*int(b),b*int(a)
print(sorted([a,b])[0])

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

l = [str(a)*b, str(b)*a]
l.sort()
print(l[0])

Submission status: Accepted

Solution code:
from sys import setrecursionlimit, exit
setrecursionlimit(1000000000)

def main():
    a, b = map(int, input().split())
    if a <= b:
        print(str(a) * b)
    else:
        print(str(b) * a)

main()

Submission status: Accepted

Solution code:
import numpy as np

a,b=map(int,input().split())

A=(''.join([str(a)]*b))
B=(''.join([str(b)]*a))

print(min(A,B))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(str(min(a, b)) * max(a, b))

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
word = ""
for i in range(max(a,b)):
    word += str(min(a,b))
print(word)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

words = []
a_word = ""
b_word = ""

for i in range(a):
    b_word += str(b)
for i in range(b):
    a_word += str(a)
words.append(a_word)
words.append(b_word)
words.sort()

print(words[0])

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
f = str(a)*b
n = str(b)*a
if f > n:
    print(n)
else:
    print(f)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
if a>b:
    print(str(b)*a)
else:
    print(str(a)*b)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a > b:
    print(str(b) * a)
else:
    print(str(a) * b)

Submission status: Accepted

Solution code:
a, b = map(str,input().split())
A = a*int(b)
B = b*int(a)
x = [A , B]
x.sort()
print(x[0])

Submission status: Accepted

Solution code:
a, b = map(str, input().split())

list = []
def Repetition(x:str, y:str):
    list.append(x * int(y))
    return

Repetition(a, b)
Repetition(b, a)


list.sort()
print(list[0])

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
if a > b:
    print(int(str(b)*a))
else:
    print(int(str(a)*b))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

a1 = a * str(b)
a2 = b * str(a)
print(min(a1, a2))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a < b:
    print(str(a) * b)
else:
    print(str(b) * a)

Submission status: Accepted

Solution code:
ls = list(map(int,input().split()))
print(str(min(ls))*max(ls))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
mozi = ''
if a > b:
    for i in range(0,a):
        mozi = mozi + str(b)
else:
    for i in range(0,b):
        mozi = mozi + str(a)
print(mozi)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

def ans152(a:int, b:int):
    listab=[str(a)*b,str(b)*a]
    listab.sort()
    return int(listab[0])

print(ans152(a,b))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3
def main():
    a, b = map(int, input().split())

    can_a = str(a) * b
    can_b = str(b) * a
    if can_a < can_b:
        print(can_a)
    else:
        print(can_b)


if __name__ == '__main__':
    main()

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

ans = 0
if a >= b:
  for i in range(a):
    ans += b * 10**i
else:
  for i in range(b):
    ans += a * 10**i
print(ans)

Submission status: Accepted

Solution code:
a,b = input().split()

A = (a*int(b))
B = (b*int(a))

if A < B:
    print(A)
else:
    print(B)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

if a<b:
    print(str(a)*b)
elif a>b:
    print(str(b)*a)
elif a==b:
    print(str(a)*b)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
c = str(a)*b
d = str(b)*a
print(min(c,d))

Submission status: Accepted

Solution code:
a, b = input().split()
str = ''
if int(a)<=int(b):
  for _ in range(int(b)):
    str += a
else:
  for _ in range(int(a)):
    str += b

print(str)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a <= b:
  print(str(a) * b)
else:
  print(str(b) * a)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b = map(int, input().split())
if a <= b:
  print(str(a)*b)
else:
  print(str(b)*a)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
c=0
if a>=b:
    for i in range(a):
        c=c*10+1
    print(b*c)
else:
    for i in range(b):
        c=c*10+1
    print(a*c)

Submission status: Accepted

Solution code:
a, b=map(int,input().split())
print(str(a)*b if a<b else str(b)*a)

Submission status: Accepted

Solution code:
f = list(map(int, input().split()))
print(str(min(f)) * max(f))

Submission status: Accepted

Solution code:
a,b=map(int, input().split())
A=str(a)*b
B=str(b)*a

print(A if A<=B else B)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())

if a <= b:
  a = str(a)
  print(a*b)

else:
  b = str(b)
  print(b*a)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
 
if a > b:
  print(str(b) * a)
else:
  print(str(a) * b)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())

if a > b:
  print(str(b) * a)
elif a < b:
  print(str(a) * b)
else:
  print(str(a) * a)

Submission status: Accepted

Solution code:
a, b = input().split()
c = a * int(b)
d = b * int(a)
print(min(c, d))

Submission status: Accepted

Solution code:
#!/usr/bin/env python3


def solve(a: int, b: int):
    n1 = str(a) * b
    n2 = str(b) * a
    if n1 < n2:
        return n1
    else:
        return n2


def main():
    a, b = map(int, input().split())
    answer = solve(a, b)
    print(answer)


if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
num = 0
if a <= b:
    for i in range(b):
        num += a * 10**i
    print(num)
else:
    for i in range(a):
        num += b * 10**i
    print(num)

Submission status: Accepted

Solution code:
a, b = map(str, input().split())
ans = [a] * int(b) if int(a)<=int(b) else [b] * int(a)
print(''.join(ans))

Submission status: Accepted

Solution code:
a,b = [int(x) for x in input().split()]
if a > b:
  print(str(b) * a)
else:
  print(str(a) * b)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
ans = ""

if a > b:
    for i in range(a):
        ans += str(b)
else:
    for i in range(b):
        ans += str(a)

print(ans)

Submission status: Accepted

Solution code:
N,M = map(int,input().split())
if N > M:
  ans = str(M)*N
else:
  ans = str(N)*M
print(ans)

Submission status: Accepted

Solution code:
a, b = map(int,input().split())
a1, b1 = str(a) * b, str(b) * a
ans = min(a1[0],b1[0])
if int(ans) == b:
  print(b1)
else:
  print(a1)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
print(min(a*str(b),str(a)*b))

Submission status: Accepted

Solution code:
a,b=map(int,input().split())
a1=f"{a}"*b
b1=f"{b}"*a
print(a1 if a1<b1 else b1)

Submission status: Accepted

Solution code:
a, b = input().split()
s1 = a*int(b)
s2 = b*int(a)
print(s1 if s1 < s2 else s2)

Submission status: Accepted

Solution code:

def main():
    a, b = map(int, input().split(" "))
    for i in range(max(a,b)):
        print(min(a,b),end = "")
    print()
    

if __name__ == "__main__":
    main()

Submission status: Accepted

Solution code:
a,b = input().split()
aa = a*int(b)
bb = b*int(a)
print(aa if aa<bb else bb)

Submission status: Accepted

Solution code:
#ABC152
a,b = input().split()
aa = a*int(b)
bb = b*int(a)
print(aa if aa<bb else bb)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
print(str(min(a, b))*max(a, b))

Submission status: Accepted

Solution code:
import re
import sys
import math
import itertools
import bisect
from copy import copy
from collections import deque,Counter
from decimal import Decimal
import functools
def v(): return input()
def k(): return int(input())
def S(): return input().split()
def I(): return map(int,input().split())
def X(): return list(input())
def L(): return list(input().split())
def l(): return list(map(int,input().split()))
def lcm(a,b): return a*b//math.gcd(a,b)
sys.setrecursionlimit(10 ** 9)
mod = 10**9+7
cnt = 0
ans = 1
inf = float("inf")
al = "abcdefghijklmnopqrstuvwxyz"

a,b = I()

A = str(a)*b
B = str(b)*a

print(min(A,B))

Submission status: Accepted

Solution code:
[a, b] = [str(i) for i in input().split()]
A = a*int(b)
B = b*int(a)
s = [A, B]
S = sorted(s)
print(S[0])

Submission status: Accepted

Solution code:
a, b = input().split()
print(min(a * int(b), b * int(a)))

Submission status: Accepted

Solution code:
a,b = input().split()
aa,bb = int(a),int(b)
print(a * bb if a * bb < b * aa else b * aa)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a >= b:
  print(str(b) * a)
else:
  print(str(a) * b)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
if a == b:
  print(str(a) * b)
elif a > b:
  print(str(b) * a)
elif a < b:
  print(str(a) * b)

Submission status: Accepted

Solution code:
a,b=map(int,input().split())

c=min(a,b)

if a==c:
    a=str(a)
    print(a*b)
else:
    b=str(b)
    print(b*a)

Submission status: Accepted

Solution code:

# ABC152

a, b = map(int, input().split())
print(min(str(a)*b, str(b)*a))

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
ans = str(min(a,b))*max(a,b)
print(ans)

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
s1 = str(a) * b
s2 = str(b) * a
print(min(s1, s2))

Submission status: Accepted

Solution code:
a, b = (int(n) for n in input().split())
if a <= b: print(str(a) * b)
else: print(str(b) * a)

Submission status: Accepted

Solution code:
# -*- coding: utf-8 -*-
a, b = input().split()

if a > b:
    print(b*int(a))
else:
    print(a*int(b))

Submission status: Accepted

Solution code:
a, b = input().split()
print(a * int(b) if a < b else b * int(a))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
SUM = 0
if b < a:
    
    for i in range(a):
        SUM = SUM + (10**i) * b
    print(str(SUM))
elif a < b:
    for i in range(b):
        SUM = SUM + (10**i) * a
    print(str(SUM))
else:
    for i in range(a):
        SUM = SUM + (10**i) * a
    print(str(SUM))

Submission status: Accepted

Solution code:
a, b = map(int,input().split())

print(sorted([str(a)*b,str(b)*a])[0])

Submission status: Accepted

Solution code:
a, b = input().split()
print(a*int(b) if a<b else b*int(a))

Submission status: Accepted

Solution code:
a, b = map(int, input().split())
c = str(a) * b
d = str(b) * a
print(sorted([c,d])[0])

Submission status: Accepted

Solution code:
a, b = input().split()
ab = a*int(b)
ba = b*int(a)
if ab <= ba:
  print(ab)
else:
  print(ba)

Submission status: Accepted

Solution code:
a,b = input().split()

ans = ""

if int(a) > int(b):
    for i in range(int(a)):
      ans += b
else:
    for i in range(int(b)):
        ans += a
print(ans)

Submission status: Accepted

Solution code:
a,b = map(int,input().split())
ls = [str(a) * b, str(b) * a]
ls.sort()
print(ls[0])

Submission status: Accepted

Solution code:
ri = lambda S: [int(v) for v in S.split()]
def rii(): return ri(input())
 
a, b = rii()

print(min(str(a) * b, str(b) * a))