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

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())
print(b**a if b>=a else a**b)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = map(int, input().split())
if a >= b:
  print(b*((10**a -1)/9))
else:
  print(a*((10**b -1)/9))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

A = int("".join(A))
B = int("".join(B))

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

Submission status: Wrong Answer

Solution code:
from sys import stdin
a,b = stdin.readline().split()
print(min(a,b))

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
if a>=b:
  tmp=a
  a=b
  b=tmp
print(a*((10**(b+1)-1)//9))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# coding:utf-8
ab=0
ba=0
a,b=map(int,input().split())

ab=str(str(a)*b)
ba=str(str(b)*a)
l=[ab,ba]
sorted(l)

print(l[0])

Submission status: Wrong Answer

Solution code:
# coding:utf-8
ab=0
ba=0
a,b=map(int,input().split())

ab=str(str(a)*b)
ba=str(str(b)*a)
l=[ab,ba]
sorted(l)
print(l[1])

Submission status: Wrong Answer

Solution code:
# coding:utf-8
ab=0
ba=0
a,b=map(int,input().split())

ab=str(a)*b
ba=str(b)*a
l=[ab,ba]
sorted(l)
print(l[1])

Submission status: Wrong Answer

Solution code:
# coding:utf-8
ab=0
ba=0
a,b=map(int,input().split())

ab=str(a)*b
ba=str(b)*a
print(min(int(ab),int(ba)))

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 = list(map(int, input().split()))
if(a[0]>a[1]):
  for _ in range(a[1]):
    print(a[0], end = "")
elif(a[0]<a[1]):
  for _ in range(a[0]):
    print(a[1], end = "") 
else:
  for _ in range(a[0]):
    print(a[0], end = "")

Submission status: Wrong Answer

Solution code:
a = list(map(int, input().split()))
if(a[0]>a[1]):
  for _ in range(a[0]):
    print(a[0], end = "")
elif(a[0]<a[1]):
  for _ in range(a[0]):
    print(a[1], end = "") 
else:
  for _ in range(a[0]):
    print(a[0], end = "")

Submission status: Wrong Answer

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

ab=str(a)*b
ba=str(b)*a
print(min(int(ab),int(ba)))

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())
min(str(a)*b,str(b)*a)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = map(int,input().split())
ans = []
strA=[]
strB=[]
for i in range(B):
    strA.append(str(A))
k=''.join(strA)
for i in range(A):
    strB.append(str(B))
l=''.join(strA)
ans.append(k)
ans.append(l)
sorted(ans)
print(ans[0])

Submission status: Wrong Answer

Solution code:
N,S = [int(x) for x in input().split()]
a=max(N,S)
b=min(N,S)
c=0
for i in range(b): c+=a*10**i
print(c)

Submission status: Wrong Answer

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


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

la=len(A)
lb=len(B)

if la<lb:
    l=la
else:
    l=lb

for i in range(l):
    if int(A[i])-int(B[i])>0:
        print(B)
        break
    elif A[i]==B[i]:
        pass
    else:
        print(A)
        break

print(A)

Submission status: Wrong Answer

Solution code:
n, m = input().strip().split()
if(n<m):
  for i in range(int(m)):
    print(n)
else:
  for i in range(int(n)):
    print(m)

Submission status: Wrong Answer

Solution code:
n, m = input().strip().split()
if(n<m):
  for i in range(int(m)-1):
    print(n)
else:
  for i in range(int(n)-1):
    print(m)

Submission status: Wrong Answer

Solution code:
a,b=input().split()
c=int(a)
d=int(b)
e=(a*d)
f=(b*c)
g=e[0:1]
h=f[0:1]
if g<=h:
    print(g)
else:
    print(h)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
X = input().split()
a = int(X[0])
b = int(X[1])
s = 'a'
d = 'b'

for q in range(b):
  s += 'a'

for w in range(a):
  d += 'b'
rin = [int(q),int(w)]
f = sorted(rin)
p = rin[1]
print(p)

Submission status: Wrong Answer

Solution code:
X = input().split()
a = int(X[0])
b = int(X[1])
s = 'a'
d = 'b'
for q in range(b):
  s += 'a'
for w in range(a):
  d += 'b'
rin = [int(q),int(w)]
f = sorted(rin)
p = rin[1]
print(p)

Submission status: Wrong Answer

Solution code:
X = input().split()
a = int(X[0])
b = int(X[1])
s = 'a'
d = 'b'
for q in range(b):
  s += 'a'
for w in range(a):
  d += 'b'
rin = [int(q),int(w)]
f = sorted(rin)
print(rin[1])

Submission status: Wrong Answer

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

if int(A) > int(B):
  print(B)
  exit()

print(B)

Submission status: Wrong Answer

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

if A >= B:
  print(B)
  exit()

print(B)

Submission status: Wrong Answer

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

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

print(B)

Submission status: Wrong Answer

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

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

print(aa if a>b else bb)

Submission status: Wrong Answer

Solution code:
a, b = 4, 3
l = [str(a) * int(b), str(b) * int(a)]
l.sort
print(l[0])

Submission status: Wrong Answer

Solution code:
import numpy as np

x = list(map(int,input().split()))
if x[0] > x[1]:
    ans = np.repeat(x[1],x[0])
    print(ans)
    
elif x[0] < x[1]:
    ans = np.repeat(x[0],x[1])
    print(ans)
    
else:
    print(np.repeat(x[0],x[1]))

Submission status: Wrong Answer

Solution code:
import numpy as np

a, b = input().split()

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

s = np.sort(s)

print(s)

Submission status: Wrong Answer

Solution code:
from sys import stdin
def solve():
  a,b=map(int,stdin.readline().split())
  sa='a'*b
  sb='b'*a
  print(min(sa,sb))
solve()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
# -*- coding: utf-8 -*-

"""
name: A-500.py
プログラムの説明
"""

def main():
    a,b = map(int, input().split())
    all_a = str(a) * b
    all_b = str(b) * a

    print(all_a)
    print(all_b)

    if (all_a < all_b):
        print(all_a)
    else :
        print(all_b)

if __name__ == '__main__':
    main()

Submission status: Wrong Answer

Solution code:
a, b = input().split(' ')
a = int(a)
b = int(b)
n = max(a,b)
m = min(a,b)
result = ''
for i in range(m):
  result += str(n)
print(result)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

else:
    for i in range(0,int(b)):
        print(b,end="")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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())

A = [a]*b
B = [b]*a

AA = int("".join(map(str, A)))
BB = int("".join(map(str, B)))

if AA >= BB:
    print(BB)
else:
    print(AA)

Submission status: Wrong Answer

Solution code:
a = list(map(str, input().split()))
a.sort()
print(a[0])

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 = input().split()
 
X = 0
Y = 0

for i in b:
  X = 'X' + 'a'
  
for v in a:
  Y = 'Y' + 'b'
  
if 'X' <= 'Y':
  print('X')
else:
  print('Y')

Submission status: Wrong Answer

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

for i in b:
  X = 'X' + 'a'
  
for v in a:
  Y = 'Y' + 'b'
  
if 'X' < 'Y':
  print('X')
else:
  print('Y')

Submission status: Wrong Answer

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

for i in b:
  X = 'X' + 'a'
  
for v in a:
  Y = 'Y' + 'b'
  
if 'X' < 'Y':
  print(X)
else:
  print(Y)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
A,B = input().split()
A_len = A
B_len = B
A_int = int(A)-1
B_int = int(B)-1
if A_int > 0:
    for i in range(A_int):
      B_len = B_len+B
    for j in range(B_int):
      A_len = A_len+A
#A = int(A_len)
#B = int(B_len)
if A > B:
  print(B)
else:
  print(A)

Submission status: Wrong Answer

Solution code:
A,B = input().split()
A_len = A
B_len = B
A_int = int(A)-1
B_int = int(B)-1
if A_int > 0:
    for i in range(A_int):
      B_len = B_len+B
    for j in range(B_int):
      A_len = A_len+A
A = int(A_len)
B = int(B_len)
if A > B:
  print(B)
else:
  print(A)

Submission status: Wrong Answer

Solution code:
ls = list(input().split(" "))
a = int(ls[0])
b = int(ls[1])
for i in range(a):
  print(b,end="")

Submission status: Wrong Answer

Solution code:
n, m=input().split(' ')
n = int(n)
m = int(m)
nn = 0
mm = 0
for i in range(m):
	nn = nn + m * pow(10, i)
for i in range(n):
	mm = mm + n * pow(10, i)    
if n < m:
  print(mm)
else:
  print(nn)

Submission status: Wrong Answer

Solution code:
a, b=list(map(int, input().split()))
big = 0
small =0
if a > b:
  big = a
  small = b
else:
  big = b
  small = a
  
s = ""
for i in range(b):
  s += str(small)

print(s)

Submission status: Wrong Answer

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

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())

aa = ''.join([str(a) for i in range(b)])
bb = ''.join([str(b) for j in range(a)])

lst = [aa, bb]
print(sorted(lst))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
ll=[1,6,4,8,3,9,5,7,2]
if ll[a-1]<=ll[b-1]:
  A=a
  B=b
else:
  A=b
  B=a
l=[]
for i in range(B):
  l.append(str(A))
o="".join(l)
print(o)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
A=max(a,b)
B=min(a,b)
l=[]
for i in range(B):
  l.append(str(A))
o="".join(l)
print(o)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
def main():
  a,b = map(int,input().split())
  ans = check(a,b)
  print(ans)
  
def check(n,m):
    num = ""
    if n < m:
        for i in range(m):
            num = str(num) + str(n)
        return num
    elif n > m:
        for i in range(n):
            num = str(num) + str(m)
        return num

main()

Submission status: Wrong Answer

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

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 = map(int, input().split())
ans = 0
if a>=b:
  for i in range(a):
    ans += b*(10**i)
  print(ans)
else:
  for j in range(b):
    ans += a*(10**b)
  print(ans)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

if a > b:
  B = []
  for i in range(a):
    B.append(b)
  print(B)  
elif a < b:
  A = []
  for i in range(b):
    A.append(a)
  print(A)
else:
  C = []
  for i in range(a):
    C.append(a)
  print(C)

Submission status: Wrong Answer

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

if a > b:
  B = []
  for i in range(a):
    B.append(b)
  print(B)  
elif a < b:
  A = []
  for i in range(b):
    A.append(a)
  print(A)
else:
  C = []
  for i in range(a):
    C.append(a)
    print(C)

Submission status: Wrong Answer

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

if a > b:
  B = []
  for i in range(a):
    B.append(b)
  print(B)  
elif a < b:
  A = []
  for i in range(b):
    A.append(a)
  print(A)
else:
  C = []
  for i in range(a):
    C.append(a)

Submission status: Wrong Answer

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


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

c =A
d=B

for i in range(b):
    c = c+A;

for i in range(a):
    d = d+B
    
if int(c) > int(d):
    print(d)
else:
    print(c)

Submission status: Wrong Answer

Solution code:
import sys

def main():
  a, b = map(int, sys.stdin.readline().split())
  s = str(b)
  print(s*a)
if __name__ == "__main__":
  main()

Submission status: Wrong Answer

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

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

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

Submission status: Wrong Answer

Solution code:
S = [input().split()]
S.sort()
print(S[0])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a, b = list(map(int,input().split()))
a1 = 0
b1 = 0
for i in range(b):
    a1 = a1 + a*(10**i)
    #print(a1)
for i in range(a):
    b1 = b1 + b*(10**i)
list = [str(a1), str(b1)]
#print(list)
sorted(list)
print(list[1])

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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()
print(min(int(b*int(a)),int(a*int(b))))

Submission status: Wrong Answer

Solution code:
import numpy as np
a,b = map(int,input().split())
if (a*10**b) > (b*10**a):
    print(np.ceil(a * (10**b + 10**(b-1) + 10**(b-2) + 10**(b-3) + 10**(b-4) + 10**(b-5) + 10**(b-6) + 10**(b-7) + 10**(b-8) + 10**(b-9))))
else:
    print(np.ceil(b * (10**a + 10**(a-1) + 10**(a-2) + 10**(a-3) + 10**(a-4) + 10**(a-5) + 10**(a-6) + 10**(a-7) + 10**(a-8) + 10**(a-9))))

Submission status: Wrong Answer

Solution code:
import numpy as np
a,b = map(int,input().split())
if (a*10^b) > (b*10^a):
    print(np.ceil(a * (10^b + 10^(b-1) + 10^(b-2) + 10^(b-3) + 10^(b-4) + 10^(b-5) + 10^(b-6) + 10^(b-7) + 10^(b-8) + 10^(b-9))))
else:
    print(np.ceil(b * (10^a + 10^(a-1) + 10^(a-2) + 10^(a-3) + 10^(a-4) + 10^(a-5) + 10^(a-6) + 10^(a-7) + 10^(a-8) + 10^(a-9))))

Submission status: Wrong Answer

Solution code:
a,b = input().split()
print(a,b)
inta = int(a)
intb = int(b)
A = a * intb
B = b * inta
list = []
list.append(A)
list.append(B)
list.sort()
print(list[0])

Submission status: Wrong Answer

Solution code:
a,b = input().split()
print(a,b)
inta = int(a)
intb = int(b)
A = a * intb
B = b * inta
list = []
list.append(A)
list.append(B)
list.sort()
print(list)

Submission status: Wrong Answer

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

var1 = 0
var2 = 0

for i in range(a[1]):
    var1 = var1 * 10 + a[0]

for i in range(a[0]):
    var2 = var2 * 10 + a[1]

if var1 <= var2:
    print(var1)
else:
    print(var2)

Submission status: Wrong Answer

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

var1 = 0
var2 = 0

for i in range(a[1]):
    var1 = var1 * 10 + a[0]

for i in range(a[0]):
    var2 = var2 * 10 + a[1]

if var1 < var2:
    print(var1)
else:
    print(var2)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

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

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

Submission status: Wrong Answer

Solution code:
n,m=[int(i) for i in input().split()]
li=[]
for i in range(n):
  li.append(m)
for i in range(n):
  print(li[i],end="")
print()

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b = list(map(int, input().split()))
c = [a,b]
c.sort()
ans = "".join(str(c[0])*c[0])
print(ans)

Submission status: Wrong Answer

Solution code:
i = list(map(int, input().split()))
ans=0

if i[0]<i[1]:
    for n in range(i[1]):
        ans += i[0]*10**n
        print(ans)

else:
    for n in range(i[0]):
        ans += i[1]*10**n
        print(ans)
print(ans)

Submission status: Wrong Answer

Solution code:
a,b = input().split()
a = int(a)
b = int(b)
if(a==b):
    print("Yes")
else:
    print("No")

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a=input().split()
b=int(a[0])
c=int(a[1])
d=[c]*(b-1)
e=str(c)
for i in d:
  e=e+str(c)
print(e)

Submission status: Wrong Answer

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

if a > b:
    for i in range(0, a + 1):
        anser = str(b) * i
if a == b:
    for i in range(0, a + 1):
        anser = str(b) * i
if a < b:
    for i in range(0, b + 1):
        anser = str(b) * i
print(anser)

Submission status: Wrong Answer

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

if a > b:
    for i in range(0, int(a) + 1):
        anser = b * i
if a == b:
    for i in range(0, int(a) + 1):
        anser = b * i
if a < b:
    for i in range(0, int(b) + 1):
        anser = b * i
print(anser)

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

p = ""
q = ""

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

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

lst = [p, q]

sorted(lst)
print(lst[0])

Submission status: Wrong Answer

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

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

print(min(int(A),int(B)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
N, M=map(int,input().split())
if N == M or N < M:
  for x in range(0, N):
    print(N, end="")
else:
  for x in range(0, N):
    print(M, end="")

Submission status: Wrong Answer

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

p = ""
q = ""

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

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

list = [p, q]

sorted(list)
print(list[0])

Submission status: Wrong Answer

Solution code:
M = input().split()
i = 0
alfa = ''
if M[0] > M[1]:
    for i in range(int(M[1])):
       alfa += str(M[0])
    print(alfa)
elif M[0] < M[1]:    
    for i in range(int(M[0])):
       alfa += str(M[1])
    print(alfa)
elif M[0] == M[1]:    
    for i in range(int(M[0])):
       alfa += str(M[1])
    print(alfa)
else:
    print('')

Submission status: Wrong Answer

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

str_a = [a] * b
str_b = [b] * a

if str_a > str_b:
    print(*str_b)
else:
    print(*str_a)

Submission status: Wrong Answer

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

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


print(min(int(A),int(B)))

Submission status: Wrong Answer

Solution code:
a,b = (int(x) for x in 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:
    n=str(a)
    for i in range(a-1):
        n+str(a)
    print(n)
else:
    if a>b:
        n=str(b)
        for i in range(a-1):
            n+str(b)
        print(n)
    else:
        n=str(a)
        for i in range(b-1):
            n+str(a)
        print(n)

Submission status: Wrong Answer

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

str_a = [a] * a
str_b = [b] * b

if str_a > str_b:
    print(*str_b)
else:
    print(*str_a)

Submission status: Wrong Answer

Solution code:
M = input().split()
i = 0
a = ''
b = ''
c = ''
if M[0] > M[1]:
    for i in range(int(M[1])):
        a += str(M[0])
    print(a)
elif M[0] < M[1]:    
    for i in range(int(M[0])):
        b += str(M[1])
    print(b)
elif M[0] == M[1]:    
    for i in range(int(M[0])):
        c += str(M[1])
    print(c)

Submission status: Wrong Answer

Solution code:
a, b = input().split()
aa = ""
bb = ""
for i in range(1, int(b)):
    aa += a
for j in range(1, int(a)):
    bb += b

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

Submission status: Wrong Answer

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


if a <= b:
    c = a
    for i in range(b-1):
        c = str(c) + str(a)
else:
    c = b
    for i in range(a-1):
        c = str(b) + str(b)
print(c)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
A=0
if a<b :
  n=10**b//10
  for i in range(b):
    A=A+a*n
    n=n//10
if b<a :
  n=10**a//10
  for i in range(a):
    A=A+b*n
    n=n//10
print(A)

Submission status: Wrong Answer

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

X = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Y = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]

for i in range(b):
    X[i] = str(a)
for j in range(a):
    Y[j] = str(b)
print(X)
print(Y)
for k in range(9):
    if int(X[k]) < int(Y[k]):
        ｎX = [e for e in X if e != 0]
        print(''.join(nX))
        break
    elif int(X[k]) > int(Y[k]):
        ｎY = [e for e in Y if e != 0]
        print(''.join(nY))
        break
    else:
        if k == 8:
            ｎX = [e for e in X if e != 0]
            print(''.join(nX))

Submission status: Wrong Answer

Solution code:
M = input().split()
i = 0
a = ''
b = ''
for i in range(int(M[0])):
    a += str(M[1])
alfa = int(a)
for i in range(int(M[1])):
    b += str(M[0])
beta = int(b)
delta = str(min(alfa,beta))
print(delta)

Submission status: Wrong Answer

Solution code:
input_list = list(map(int, input().split()))
num_f = input_list[0]
num_s = input_list[1]
if num_f == num_s:
  print(str(num_f) * num_s)
if num_f > num_s:
  print(str(num_s) * num_f)
else:
  print(str(num_f) * num_s)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
i = 0
if a > b:
  while i < b:
    print(str(a), end="")
    i += 1
else:
  while i < a:
    print(str(b), end="")
    i += 1

Submission status: Wrong Answer

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

ans_a = 0
ans_b = 0
ans = []
for i in range(b):
    ans_a = ans_a + a*10**i

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

ans_a = str(ans_a)
ans_b = str(ans_b)

print(ans_a,ans_b)
print(type(ans_a),type(ans_b))

ans = [ans_a,ans_b]
print(sorted(ans))
answer = ans[0]
print(answer)

Submission status: Wrong Answer

Solution code:
a,b = input().split()
a_int = int(a)
b_int = int(b)
ab = int(a*b_int)
ba = int(b*a_int)
if ab >= ba:
    print(ba)
elif ab <= ba:
    print(ab)

Submission status: Wrong Answer

Solution code:
a,b=(int(x) for x in input().split())
i = 0
if a > b:
  while i < b:
    print(str(a))
    i += 1
else:
  while i < a:
    print(str(b))
    i += 1

Submission status: Wrong Answer

Solution code:
num=[int(e) for e in input().split()]
if num[0]>=num[1]:
  print(num[1]*(10**num[0]))
else:
  print(num[0]*(10**num[1]))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

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

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


print(min(A,B))

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(int(min(A,B)))

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(B)
    elif int(A[i])<int(B[i]):
      print(A)
    if i==len(A)-1:
      print(A)

Submission status: Wrong Answer

Solution code:
L, R = map(str,input().split())
list = [L, R]
sorted(list)
print(list[0])

Submission status: Wrong Answer

Solution code:
A,B = list(map(int,input().split()))
para_a = str(B)
para_b = str(A)

for i in range(A-1):
    para_a = para_a + str(B)

for i in range(B-1):
    para_b = para_b + str(A)

N = [para_a,para_b]

sorted(N)

print(N[0])

Submission status: Wrong Answer

Solution code:
A,B = list(map(int,input().split()))
para_a = str(B)
para_b = str(A)

for i in range(A-1):
    para_a = para_a + str(B)

for i in range(B-1):
    para_b = para_b + str(A)

N = [para_a,para_b]
print(N)
sorted(N)

print(N[0])

Submission status: Wrong Answer

Solution code:
def slove(a, b):

    return min(a,b)

if __name__ == "__main__":

    a, b = input().split()

    ans = slove(a, b)
    print(ans)

Submission status: Wrong Answer

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

ab = ""
ba = ""

for i in range(b+1):
  ab = ab + input_ab[0]

for i in range(a+1):
  ba = ba + input_ab[1]

dic = [ab, ba]
sdic = sorted(dic)

print(sdic[0])

Submission status: Wrong Answer

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

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(txt[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(str(min(A,B)))

Submission status: Wrong Answer

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

Submission status: Wrong Answer

Solution code:
a,b=map(int,input().split())
l=[[1,1],[2,11],[3,111],[4,1111],[5,11111],[6,111111],[7,1111111],[8,11111111],[9,111111111]]

c=0
d=0

for i in range(9):
    if l[i][0]==a:
        c=b*l[i][1]
    if l[i][0]==b:
        d=a*l[i][1]
print(min(c,d))

Submission status: Wrong Answer

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

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:
T = input().split()

a = T[0]
b = T[1]

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:
a, b = map(int, input().split())

ab = ''
ba = ''

for i in range(b):
    ab += str(b)

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

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