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(int, input().split())

x = a if a<=b else b

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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: Wrong Answer

Solution code:
a, b = map(int, input().split())
c = []
d = []

for i in range(1, a+1):
    c.append(b)

for j in range(1, b+1):
    d.append(a)

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

Submission status: Wrong Answer

Solution code:
n, m = input().split()
nn = m*int(n)
mm = n*int(m)
print(min(int(nn), int(mm)))

Submission status: Wrong Answer

Solution code:
n, m = input().split()
n = m*int(n)
m = n*int(m)
print(min(int(n), int(m)))

Submission status: Wrong Answer

Solution code:
a = input()
n = a[0]
m = a[-1]
n = m*int(n)
m = n*int(m)
print(n if n<m else m)

Submission status: Wrong Answer

Solution code:
a = input()
n = a[0]
m = a[-1]
n = m*int(n)
m = n*int(m)
print(min(int(n), int(m)))

Submission status: Wrong Answer

Solution code:
a,b=input().split()
A=int(a)
B=int(b)
aa=a
bb=b
for i in range(B-1):
    aa+=a
for j in range(A-1):
    bb+=b
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)
else:
    print(str(b) * a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
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())

if a <= b:
	for i in range(b):
		print("a",end = "")

Submission status: Wrong Answer

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

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

l = list(A+B)
print("".join(sorted(l)[:b+1]))

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=(input().split())
ai=int(a)
bi=int(b)
c1=(b*ai)
c2=(a*bi)  
l=[]
l.append(str(c1))
l.append(str(c2))
l.sort
print(l[0])

Submission status: Wrong Answer

Solution code:
a,b=(input().split())
ai=int(a)
bi=int(b)
c1=(b*ai)
c2=(a*bi)  
l=[]
l.append(c1)
l.append(c2)
l.sort
print(l[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(int(a) * b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
INPUT = input().split()
a = INPUT[0]
b = INPUT[1]
a1 = a * int(b)
b1 = b * int(a)
if a1 >= b1:
  print(a1)
else:
  print(b1)

Submission status: Wrong Answer

Solution code:
a, b = map(int,input().split())
sa = str(a) * b
sb = str(b) * a
s = list({sa, sb})
print(s[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
x = min(a,b)
y = max(a,b)
for i in range(y):
    print(a,end="")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# B Comparing Strings

a, b = input().split()

s = []
s.append(a * int(b))
s.append(b * int(a))
s.sort

print(s[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
A = ""
B = ""
for i in range(0,b):
    A += str(b)
for j in range(0,a):
    B += str(a)
print(sorted([A,B])[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
l=[]
if a>=b:
    for i in range(a):
        l.append(b)

print(''.join(map(str,l)))

Submission status: Wrong Answer

Solution code:

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

c=a>b

for i in range(a if c else b):
	print(b,end="")

print()

Submission status: Wrong Answer

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

a_str = 'a' * b
b_str = 'b' * a

if a < b:
    print(a_str)
elif b > a:
    print(b_str)
else:
    print(a_str)

Submission status: Wrong Answer

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

x = int(a * int(b))
y = int(b * int(a))

print(min(x, y))

Submission status: Wrong Answer

Solution code:
a=[v for v in input().split()]
u=int(a[0])
for i in range (0,u):
    print(a[1],end='')

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input().split(" ")
x1=""
x2=""

for j in range(int(a[0])):
    x1=x1+a[0]

for y in range(int(a[1])):
    x2=x2+a[1]

z1=int(x1)
z2=int(x2)

if x1>x2:
	print(x1)
elif x1<x2:
	print(x2)
else:
	print(x1)

Submission status: Wrong Answer

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

ab = a * bn
ba = b * an

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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 = input().split()
if int(a*int(b)) < int(b*int(a)):
  print(int(a*int(b)))
else:
  print(int(b*int(a)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = input().split()
ab=''
ba=''
for i in range(int(b)):
  ab += a
for i in range(int(a)):
  ba += b
l = [ab,ba]
sorted(l)
print(l[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

num1 = int(a * int(b))
num2 = int(b * int(a))

if num1 >num2:
    print(num2)

if num1 <num2:
    print(num1)

Submission status: Wrong Answer

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

num1 = int(a * int(b))
num2 = int(b * int(a))

if num1 >num2:
    print(num2)

if num1 <num2:
    print(num1)
    
else:
    print(num1)

Submission status: Wrong Answer

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

elif a < b:
    print(a*4)

elif a == b:
    print(a*8)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if num[0] == num[1]:
  max = num[0]
  min = num[1]
else:
  max = max(num[0],num[1])
  min = min(num[0],num[1])
  
print(str(max)*min)

Submission status: Wrong Answer

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

m=min(a,b)
ans=''
for i in range(m):
    ans+=str(m)
print(ans)

Submission status: Wrong Answer

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

m=max(a,b)
ans=''
for i in range(m):
    ans+=str(m)
print(ans)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
c =[a*int(b), b*int(a)]
c.sort
print(c[1])

Submission status: Wrong Answer

Solution code:
a, b = map(int, 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())
print(a*int(b) if a*int(b) <= b*int(a) else b*int(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 = input().split()

x = a * int(b)
y = b * int(a)

if len(x) < len(y):
  print(x)
elif len(x) > len(y):
  print(y)
elif len(x) == len(y):
  if int(x) <= int(y):
    print(x)
  else:
    print(y)

Submission status: Wrong Answer

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

x = a * int(b)
y = b * int(a)

if int(x) <= int(y):
  print(x)
else:
  print(y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(a*int(b) if "a"*int(b) <= "b"*int(a) else "b"*int(a))

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(a) * 7)
elif a > b:
  print(str(b) * a)
else:
  print(str(a) * b)

Submission status: Wrong Answer

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

b=max(a,b)
s=min(a,b)

print(str(s)*b)

Submission status: Wrong Answer

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

s1 = "a" *b
s2 = "b" *a
if s1 < s2:
    print(s1)
else:
    print(s2)

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())
c=str("a")*b
d=str("b")*a
if a>=b:
    print(d)
else:
    print(c)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a , b = map(int,input().split())
s = max(a,b)
t = min(a,b)
k = 0
for i in range(0,s+1):
  k += t*(10**i)
  
  
print(k)

Submission status: Wrong Answer

Solution code:
a , b = map(int,input().split())
s = max(a,b)
t = min(a,b)
k = 0
for i in range(1,s+1):
  k += t*(10**i)
  
  
print(k)

Submission status: Wrong Answer

Solution code:
import sys
a,b = (int(x) for x in input().split())
l = [1,6,4,9,3,8,5,7,2]

if a*b==3:
    print(3)
    sys.exit()

            
if l[a-1]<=l[b-1]:
    for i in range(b-1):
        print(a, end="")
    print(a)
    
elif l[a-1]>l[b-1]:
    for i in range(a-1):
        print(b, end="")
    print(b)

Submission status: Wrong Answer

Solution code:
import sys
a,b = (int(x) for x in input().split())
l = [1,6,4,9,3,8,5,7,2]

if a*b==3:
    print(3)
    sys.exit()

            
if l[a-1]<=l[b-1]:
    for i in range(b-1):
        print(a, end="")
    print(a)
else:
    for i in range(a-1):
        print(b, end="")
    print(b)

Submission status: Wrong Answer

Solution code:
a,b = (int(x) for x in input().split())
l = [1,6,4,9,3,8,5,7,2]

if a==1 | b==1:
    if a==3 | b==3:
        if a==1:
            print(b)
        else:
            print(a)
            
if l[a-1]<=l[b-1]:
    for i in range(b-1):
        print(a, end="")
    print(a)
else:
    for i in range(a-1):
        print(b, end="")
    print(b)

Submission status: Wrong Answer

Solution code:
a,b = (int(x) for x in input().split())
l = [1,9,5,3,7,2,8,6,4]

if a==1 | b==1:
    if a==3 | b==3:
        if a==1:
            print(b)
        else:
            print(a)
            
if l[a-1]<=l[b-1]:
    for i in range(b-1):
        print(a, end="")
    print(a)
else:
    for i in range(a-1):
        print(b, end="")
    print(b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input() .split())
x = ''
for i in range(a):
  x += str(b)
for i in range(b):
  x += str(a)
print x

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input() .split())
x = ''
for i in range(a):
  x += str(b)
print x

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input() .split())
x = []
for i in range(a):
  x += str(b)
print x

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input() .split())
x = ''
for i in range(a):
  x += str(b)
  print x

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input() .split())
x = []
for i in range(a):
  x += str(b)
  print x

Submission status: Wrong Answer

Solution code:
a, b = map(int, raw_input() .split())
x = ''
for i in range(a):
    x += str(b)
print x

Submission status: Wrong Answer

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

a2 = int(str(a)*b)
b2 = int(str(b)*a)

if a2<b2:
  print(a2)
else:
  print(b2)

Submission status: Wrong Answer

Solution code:
'''
INPUT SHORTCUTS
N, K = map(int,input().split())
N ,A,B = map(int,input().split())
string = str(input())
arr = list(map(int,input().split()))
N = int(input())
'''


a, b = map(int,input().split())
res = ''
if a<=b:
	for _ in range(b):
		res += 'a'
else:
	for _ in range(a):
		res += 'b'
print(res)

Submission status: Wrong Answer

Solution code:
'''
INPUT SHORTCUTS
N, K = map(int,input().split())
N ,A,B = map(int,input().split())
string = str(input())
arr = list(map(int,input().split()))
N = int(input())
'''


a, b = map(int,input().split())
res = ''
if a<=b:
	for _ in range(b):
		res += 'b'
else:
	for _ in range(a):
		res += 'b'
print(res)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
A = list(str(a) * b)
B = list(str(b) * a)
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 = int(str(a) * b)
B = int(str(b) * a)
nlist = (A, B)
newlist = sorted(nlist)
if A != B:
    print(newlist[0])
else:
    print(A)

Submission status: Wrong Answer

Solution code:
a,b = map(int,input().split())
num1 = [a]*b
num2 = [b]*a
num1 = [str(i) for i in num1]
num2 = [str(i) for i in num2]
num1 = int(''.join(num1))
num2 = int(''.join(num2))
print(min(num1,num2))

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
A = int(str(a) * b)
B = int(str(b) * a)
nlist = (A, B)
sorted(nlist)
if A != B:
    print(nlist[0])
else:
    print(A)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


def solve(a: int, b: int):
    if a>b:
        print("".join(str(b)*a))
    else:
        print("".join(str(b)*a))
    return


# Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
def main():
    def iterate_tokens():
        for line in sys.stdin:
            for word in line.split():
                yield word
    tokens = iterate_tokens()
    a = int(next(tokens))  # type: int
    b = int(next(tokens))  # type: int
    solve(a, b)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
A = int(str(a) * b)
B = int(str(b) * a)
nlist = (A, B)
sorted(nlist)
print(nlist[1])

Submission status: Wrong Answer

Solution code:
n, m = map(int,input().strip().split())
for i in range(0, n):
    print(m,end='')

Submission status: Wrong Answer

Solution code:
n, m = map(int,input().strip().split())
print('{}'.format(m)*n)

Submission status: Wrong Answer

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

print(str(a)*b)

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

a1 = 0
for i in range(b):
  a1 = a1*10 + a
  
b1 = 0
for i in range(a):
  b1 = b1*10 + b
  
print(min(a1,b1))

Submission status: Wrong Answer

Solution code:
str=list(input().split())
cal=[int(s) for s in str]

for i in range(2):
    str[i]+=str[i]*(cal[i]-1)

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

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())
A=str(a)*b
B=str(b)*a
l=[A,B]
print(l)
l.sort()
print(l)

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:
def resolve():

    a,b=map(int,input().split())
    l=[a for i in range(b+1)]
    l2=[b for i in range(a+1)]

    if l<l2:
        for i in range(len(l)):
            print(l[i],end='')
    else:
        for i in range(len(l2)):
            print(l2[i],end='')



resolve()

Submission status: Wrong Answer

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

d=0
for j in range(b):
  d+=a*(10**j)

e=min(c,d)
print(e)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n, m = input().split()
if n*int(m) > m*int(n):
  print(n*int(m))
else:
  print(m*int(n))

Submission status: Wrong Answer

Solution code:
n = list(map(int,input().split()))
a = n[0]
b = n[1]
if a < b:
    print (str(b) * a)
else:
    print (str(a) * b)

Submission status: Wrong Answer

Solution code:
n = list(map(int,input().split()))
a = n[0]
b = n[1]
tmp = 0
if a < b:
    for i in range (a):
        tmp += b * (10 ** i)
    print (tmp)
else:
    for i in range (b):
        tmp += a * (10 ** i)
    print (tmp)

Submission status: Wrong Answer

Solution code:
n = list(map(int,input().split()))
a,b = n
fb = 0
fa = 0
for i in range (a):
    tmp = b * (10 ** i)
    fb += tmp

for i in range (b):
    tmp = a * (10 ** i)
    fa += tmp
if fa > fb:
    print (fb)
else:
    print (fa)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
hai1=[]
hai2=[]
for k in range(0,a):
  hai1.append(str(b))
for i in range(0,b):
  hai2.append(str(a))
ak="".join(hai1)
bk="".join(hai2)
c=[0]*2
c[0]=int(ak)
c[1]=int(bk)
c.sort()
print(c[0])

Submission status: Wrong Answer

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

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())
a_l = str(a)*a
b_l = str(b)*b
if a_l>b_l:
  print(b_l)
elif b_l>a_l:
  print(a_l)
else:
  print(a_l)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
if A >= B :
  out = str(A) * B
else:
  out = str(B) * A

print(out)

Submission status: Wrong Answer

Solution code:
n, m = (input().split())
n=int(n)
if 1 <= int(n) <=9 and 1<=int(m)<=9:
    print(n*m)

Submission status: Wrong Answer

Solution code:
n, m = (input().split())
m=int(m)
if 1 <= int(n) <=9 and 1<=int(m)<=9:
    print(n*m)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if A > B:
    print(AB)
elif A < B:
    print(BA)
else:
    print(AB)

Submission status: Wrong Answer

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

if A > B:
    print(AB)
elif A < B:
    print(BA)
else:
    print(AB)

Submission status: Wrong Answer

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

if A >= B:
    print(AB)
elif A < B:
    print(BA)

Submission status: Wrong Answer

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

if A >= B:
    print(AB)
else:
    print(BA)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
n,m = list(map(int,input().split()))

if n > m:
  for i in range(n):
    print(m)
else:
  for i in range(m):
    print(n)

Submission status: Wrong Answer

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

x=a*int(b)
y=b*int(a)

keta=min(len(x),len(y))

if int(x[:3]) > int(y[:3]):
    print(y)
elif int(x[:3]) < int(y[:3]):
    print(x)
else:
    print(x)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b= input().split()
x=int(a*int(b))
y=int(b*int(a))
c=[x,y]
c.sort
print(c[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

print(ans)

Submission status: Wrong Answer

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

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

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

lst = list()
lst.append(aStr)
lst.append(bStr)
lst.sort()
print(lst[0])

Submission status: Wrong Answer

Solution code:
ab = input().split(' ')
print(max(ab[0]*int(ab[1]), ab[1]*int(ab[0])))

Submission status: Wrong Answer

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

if a[0] >= a[1]:
    print(a[0] * int(a[1]))
else:
    print(a[1] * int(a[0]))

Submission status: Wrong Answer

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

a1 = str(a)
b1 = str(b)

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

if a1 < b1:
    print(a1)
else:
    print(b1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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 = input().split()
A = a*int(b)
B = b*int(a)

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())#整数を複数の変数に格納

if a^b > b^a:
    print(b^a)
else:
    print(a^b)

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())#整数を複数の変数に格納

if a^b > b^a:
    print(a^b)
else:
    print(b^a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a < b:
    print(a)
else:
    print(b)
# p = list(map(int,input().split()))

# count = 0
# val = sum(p[0:k])
# val_lis = [val]
# mx_val = val
# index = 0
# mx_index = 0
# for i,j in enumerate(p[k:]):
#     val = val - p[index] + j
#     val_lis.append(val)
#     index +=1
#     if val > mx_val:
#         mx_index = index
#         mx_val = val 
    
# ans = 0
# for i in range(k):
#     ans += ((p[mx_index + i]+1.0)*(p[mx_index+i]))/ (p[mx_index+i] *2.0)
# print(ans)  




# h = sorted(h,reverse = True)
# print(sum(h[k:]))

# s,t= map(str, input().split())
# a,b= map(int, input().split())
# u = input()
# print("x"*len(u))

# if(u == s):
#     print(a-1,b)
# else:
#     print(a,b-1)

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)
# p = list(map(int,input().split()))

# count = 0
# val = sum(p[0:k])
# val_lis = [val]
# mx_val = val
# index = 0
# mx_index = 0
# for i,j in enumerate(p[k:]):
#     val = val - p[index] + j
#     val_lis.append(val)
#     index +=1
#     if val > mx_val:
#         mx_index = index
#         mx_val = val 
    
# ans = 0
# for i in range(k):
#     ans += ((p[mx_index + i]+1.0)*(p[mx_index+i]))/ (p[mx_index+i] *2.0)
# print(ans)  




# h = sorted(h,reverse = True)
# print(sum(h[k:]))

# s,t= map(str, input().split())
# a,b= map(int, input().split())
# u = input()
# print("x"*len(u))

# if(u == s):
#     print(a-1,b)
# else:
#     print(a,b-1)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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:
N,M = input().split()

J = int(N)
K = int(M)

if N > M:
  print(M*K)
else:
  print(N*J)

Submission status: Wrong Answer

Solution code:
N,M = (int(x) for x in input().split())

J = int(N)
K = int(M)

if N > M:
  print(M*K)
else:
  print(N*J)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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


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

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

ans = min(s1,s2)