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: Runtime Error

Solution code:
def main():
  import sys
  n,k=map(int,input().split())
  a=tuple(map(int,sys.stdin.readline().split()))
  
  def count(arr,now):
    return sum(element<now for element in arr)
  
  ans=0
  prime=10**9+7
  k=k%prime
  for i in range(n):
    left=count(a[:i],a[i])
    right=count(a[i+1:],a[i])
    res=(k-1)*k//2*(right+left)+right*k
    ans+=res%prime
    
  print(ans%prime)

if __name__=="__main__":
  main()

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a, b = map(string, input().split())
s = ''
if a > b:
	for _ in range(int(a)):
		s += b
else:
	for _ in range(int(b)):
		s += a
print(s)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#!/usr/bin/env python3
a, b = input().split(" ")
for i in range(a):
    a += a
for i in range(b):
    b += b
print(sorted([a, b])[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

bigA = a*int(b)
bigB = b*int(a)

if bigA < bigB:
    print(bigA)
elif bigA = bigB:
    print(bigA)
else:
    print(bigB)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a,b = input().split()
aa=''.join([int(a) for _ in range(int(b))])
bb=''.join([int(b) for _ in range(int(a))])
print(max(int(aa),int(bb)))

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())
c = str(a)*b
d = str(b)*a
if(c < d):
  print (c)
else:
  print(d)

Submission status: Runtime Error

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

Submission status: Runtime Error

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(min): c+=a*10**i
print(c)

Submission status: Runtime Error

Solution code:
a,b = map(int,input().split())
la = []
lb = []
i = 0
map_la = map(str, la)
map_lb = map(str, lb)
while i <= b:
  la.append(a)
  map_la = ''.join(map_la)
  i += 1
while i <= a:
  la.append(b)
  map_lb = ''.join(map_lb)
  i += 1
if map_la <= map_lb:
  print(map_la)
else:
  print(map_lb)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

rin = [int(d),int(s)]
f = sorted(rin)
p = rin[1]
print(p)

Submission status: Runtime Error

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 = q + w
f = sorted(rin)
p = rin[1]
print(p)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
l=[]
if a<b:
  for i in range(a):
    l.append(b)
    l=[str(i) for i in l]
    L=''.join(l)
	print(L)
else:
   for i in range(b):
    l.append(a)
    l=[str(i) for i in l]
    L=''.join(l)
	print(L)

Submission status: Runtime Error

Solution code:
import numpy as np

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
l=[]
if a<b:
  for i in range(a):
    l.append(b)
    l=[str(i) for i in l]
    L=''.join(l)
	print(L)
else:
   for i in range(b):
    l.append(a)
     l=[str(i) for i in l]
    L=''.join(l)
	print(L)

Submission status: Runtime Error

Solution code:
import numpy as np

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

Submission status: Runtime Error

Solution code:
a,b=map(int,input().split())
l=[]
if a<b:
  for i in range(a):
    l.append(b)
    L=''.join(l)
	print(L)
else:
   for i in range(b):
    l.append(a)
    L=''.join(l)
	print(L)

Submission status: Runtime Error

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

x=''

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

for i in range(b):
  y += str(a)
  
print(min(x,y))

Submission status: Runtime Error

Solution code:
inp = input().split("")
lis = [,]
for i in range(inp[0]):
  lis[1] += inp[1]
for i in range(inp[1]):
  lis[0] += inp[0]
lis.sort()
print(lis[0])

Submission status: Runtime Error

Solution code:
a = input()
b = input()

list_a = [0]*int(b)
list_b = [0]*int(a)

for i in range(0,int(b)):
    list_a[i] = int(a)*10**i

for i in range(0,int(a)):
    list_b[i] = int(b)*10**i
    
a_r = sum(list_a) 
b_r =sum(list_b)

if(int(a_r)<int(b_r)):
    print(str(a_r))
elif(int(a_r)>int(b_r)):
    print(str(b_r))
else:
    print(str(a_r))

Submission status: Runtime Error

Solution code:
a = input()
b = input()

list_a = [0]*int(b)
list_b = [0]*int(a)

for i in range(0,int(b)):
    list_a[i] = int(a)*10**i

for i in range(0,int(a)):
    list_b[i] = int(b)*10**i
    
a_r = sum(list_a) 
b_r =sum(list_b)

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()

list_a = [0]*int(b)
list_b = [0]*int(a)

for i in range(0,int(b)):
    list_a[i] = int(a)*10**i

for i in range(0,int(a)):
    list_b[i] = int(b)*10**i
    
a_r = sum(list_a) 
b_r =sum(list_b)

if(a<b):
    print(a_r)
elif(a>b):
    print(b_r)
else:
    print(a_r)

Submission status: Runtime Error

Solution code:
import numpy as np
a = input()
b = input()
a_int =int(a)
b_int = int(b)
# print(a)
# print(b)
c = ""
if(a<b):
    for i in range(b_int):
        c += str(a)
    print(c)

else:
    for i in range(a_int):
        c += str(b)
    print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <iostream>
#include <algorithm>
#include <string>
using namespace std;

#define eb emplace_back
#define sz(s) (int)(s.size())
#define all(s) s.begin(), s.end()
#define ll long long

const int N = 2e6;
const int INF = 1e9;

void solve() {
	int a, b;
	cin >> a >> b;
	string s, t;
	for (int i = 1; i <= b; ++ i)
		s += (to_string(a));
	while(a--) {
		t += (to_string(b));
	}
	cout << min(s, t);
	
}

int main () {
	cerr << "Ready\n";
	solve();
	return 0;
}

Submission status: Runtime Error

Solution code:
/* 
****	
	AUTHOR :- @soham01 
****
*/
#include "bits/stdc++.h"
using namespace std;
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	long long int a,b,aa=0,bb=0,i,j;
	cin>>a>>b;
	for(i=0;i<a;i++)
	{
		aa=aa*10+b;
	}
	for(i=0;i<b;i++)
	{
		bb=bb*10+a;
	}
	cout<<max(aa,bb)<<endl;
	return 0;
}

Submission status: Runtime Error

Solution code:
def repeat_string(x, y):
    """Return the digit x repeated y times."""
    single_string = str(x)
    repeat_string = single_string*y
    return repeat_string


def compare_strings(a, b):
    if a>b: return(repeat_string(b, a))
    return(repeat_string(a, b))


if __name__ == "__main__":
    test1 = "4 3"
    test2 = "7 7"
    test = test2
    test_input = map(int, intput().split())
    print(compare_strings(*test_input))

Submission status: Runtime Error

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

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
[a,b] = [int(s) for s in input().rstrip().split(' ')]
W = ""
if a < b:
  for i in range(b):
    W.append(str(a))
  print(W)
else:
  for i in range(a):
    W.append(str(b))
  print(W)

Submission status: Runtime Error

Solution code:
n = [int(e) for e in input().split(" ")]
if(n[0] == n[1]):
    print(f"{n[0]}" * n[0])
elif(n[0] < n[1]):
    print(f"{n[0]}" * n[1])
else:
    print(f"{n[1]}" * n[0])

Submission status: Runtime Error

Solution code:
a, b = [input() for i in range(2)]
a_array = []
for i in range(int(b)):
    a_array.append(a)
a_str = "".join(a_array)

b_array = []
for i in range(int(a)):
    b_array.append(b)
b_str = "".join(b_array)


if a_str < b_str:
    print(a_str)
elif b_str < a_str:
    print(b_str)
else:
    print(a_str)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define fi first
#define se second
#define mp make_pair
#define itrfor(itr,A) for(auto itr = A.begin(); itr !=A.end();itr++)
template <class T> using reversed_priority_queue = priority_queue<T, vector<T>, greater<T> >;
typedef long long llong;
char moji[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
char moji2[26]={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
char moji3[10]={'0','1','2','3','4','5','6','7','8','9'};
#define Sort(a) sort(a.begin(),a.end());
#define Reverse(a) reverse(a.begin(),a.end());
#define print(a) cout << a << endl;
#define MOD llong(1e9+7)
#define MAX int(2 * 1e5 +5)
#define debug(x)  cout << #x << " = " << (x) << endl;
#define pi acos(-1.0)
#define int llong
#define INF llong(1e18 + 3)
template<class T> bool chmax(T &a,  T b) {if(a<b){a=b; return 1;} return 0;}
template<class T> bool chmin(T &a,  T b) {if(a>b){a=b; return 1;} return 0;}
bool Add(int &a,int b){a = (a + b) % MOD;}
void myprint(int* A,int A_num){
   REP(i,A_num) cout << A[i] << " ";
   cout << endl;
}

signed main(){
    int a,b;
    cin >> a >> b;
    if(a > b) swap(a,b);
    REP(i,b) cout << a;
    cout << endl;
}

Submission status: Runtime Error

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 += n
print(result)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

as = str(a) * b
bs = str(b) * a

print(as if as < b else bs)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def execute(key: int, base: str) -> str:
  s = ""
  for i in range(key):
    s += str(base)
  return s

a, b = input().split()
c = [execute(a, b), execute(b, a)]
print(sorted(c)[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if a <= b:
	for i in b:
    print(a*int(b))
 
else:
	for v in a:
	print(b*int(a))

Submission status: Runtime Error

Solution code:
a , b =map(int(),input().split())
A=str(a)
B=str(b)
for i in a:
    X+="A"
for j in b:
    Y+="B"

if a<b:
    print(X)
if a>b:
    print(Y)

Submission status: Runtime Error

Solution code:
a , b = map(int(),input().split())
 
X = ''
Y = ''
 
if a < b:
	for i in b:
		X = 'X' + 'a'
    print(X)
 
else:
	for v in a:
		Y = 'Y' + 'b'
	print(Y)

Submission status: Runtime Error

Solution code:
a , b = map(int(),input().split())
 
X = 0
Y = 0
 
if a < b:
	for i in b:
		X = 'X' + 'a'
    print(X)
 
else:
	for v in a:
		Y = 'Y' + 'b'
	print(Y)

Submission status: Runtime Error

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

X = 0
Y = 0

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

else:
	for v in a:
		Y = 'Y' + 'b'
	print(Y)

Submission status: Runtime Error

Solution code:
a , b = map(int(),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: Runtime Error

Solution code:
a , b =map(int,input().split())
A=str(a)
B=str(b)
for(int i=0; i<a; i++):
    X+="A"
for(int j=0; j<b; j++):
    Y+="B"

if a<b:
    print(X)
if a>b:
    print(Y)

Submission status: Runtime Error

Solution code:
a , b = map(int(),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: Runtime Error

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

X = 0
Y = 0

list = [X,Y]

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

Submission status: Runtime Error

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

print(str(np.sort(i)[0]) * np.sort(i)[1])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def main():
  x=int(input())
  y=int(input())
  
  if x>y:
    print(str(y)*x)
  elif x<y:
    print(str(x)*y)
  else:
    print(str(x)*y)
main()

Submission status: Runtime Error

Solution code:
def main():
  x=int(input())
  y=int(input())
  
  if x>y:
    print(str(y)*x)
  elif x<y:
    print(str(x)*y)
  else:
    print(str(x)*y)
main()

Submission status: Runtime Error

Solution code:
a = int(input())
b = int(input())

if x>y:
  print(str(y)*x)
elif x<y:
  print(str(x)*y)
else:
  print(str(x)*y)

Submission status: Runtime Error

Solution code:
input=input()
input.split()
string_a =""
string_b =""

for i in range(int(input[1])):
    string_a += str(input[0])
for n in range(int(input[0])):
    string_b += str(input[1])

if (string_a < string_b):
    print (string_a)
else:
    print (string_b)

Submission status: Runtime Error

Solution code:
input=input()
input.split()
string_a =""
string_b =""

for i in range(input[1]):
    string_a += str(input[0])
for n in range(input[0]):
    string_b += str(input[1])

if (string_a < string_b):
    print (string_a)
else:
    print (string_b)

Submission status: Runtime Error

Solution code:
input=input()
string_a =""
string_b =""

for i in range(input[1]):
    string_a += str(input[0])
for n in range(input[0]):
    string_b += str(input[1])

if (string_a < string_b):
    print (string_a)
else:
    print (string_b)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
#coding: utf-8
 
s = input().split()
if s[0]>s[1]:
  for i in range(s[0]):
  	print('str(s[1]',end='')
else:
  for i in range(s[1]):
  	print('str(s[0]',end='')

Submission status: Runtime Error

Solution code:
a=list(map(lambda x:x,input().split()))
if(a[1]>a[0]):
  print(str(a[0])*a[1])
else:
  print(str(a[1])*a[0])

Submission status: Runtime Error

Solution code:
a=list(map(lambda x:x,input(),split()))
if(a[1]>a[0]):
  print(str(a[0])*a[1])
else:
  print(str(a[1])*a[0])

Submission status: Runtime Error

Solution code:
a,b = [int(i) for i in input().split()]
A = max(a,b)
B = max(a,b)
a_list=[]
for k in range(b):
	a_list.append(a)
print(''.join(map(str,a_list))

Submission status: Runtime Error

Solution code:
import math
a = int(input())
b = input()
print(str(b) * 4)

Submission status: Runtime Error

Solution code:
n,m=[int(i) for i in input().split()]
ans=""
if n>=m:
  for i in range(n):
    ans+=m
else:
  for i in range(m):
    ans+=n
print(ans)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
# 7 7
a, b = [xfor x in input().split()]
print(sorted([a * b, b * a])[-1])

Submission status: Runtime Error

Solution code:
_,a,b=sorted(input())[1:];print(a*int(b))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
r=input()
k=r.split()

t1=t2=0
for i in range(k[2]):
    t1 += k[0]
for i in range(k[0]):
    t2 += k[2]
    
jj=[t1,t2]
jj.sort(reverse=True)
print(jj[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
if a>=b:
  print(str(b*a))
else a<=b:
  print(str(a*b))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
a = input()
b = input()
sumA = ""
sumB = ""
for i in range(int(b)):
    sumA +=""+str(a)
for i in range(int(a)):
    sumB +=""+str(b)
if(int(sumA)>int(sumB)):
    print(sumA)
elif(int(sumB)>int(sumA)):
    print(sumB)
elif(int(sumA) == int(sumB)):
    print(sumA)

Submission status: Runtime Error

Solution code:
num = a*b
num1 = b*a
if a>=b:
  print(str(num))
else:
  print(str(num1))

Submission status: Runtime Error

Solution code:
n = int(input())
p = list(map(int,input().split()))
#n = 5
#p = [4,2,5,1,3]
maxcnt = 1
cnt = 1
for i in range(n):
    box = 0
    cnt = 1
    box = p[i]
    if n - i < maxcnt :
        break

    for j in range(i + 1 , n ):
        if i < j and box >= p[j]:
            box = p[j]
            cnt += 1
            if maxcnt < cnt :
                maxcnt = cnt
            
print(maxcnt)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
O, K = input().split()
i = O*int(k)
u = K*int(O)
print(sorted([i,u])[0])

Submission status: Runtime Error

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

a1 = f"{b}" * a
b1 = f"{a}" * b

print(f"{b1}" if min(a,b)==a else f"{a1}")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
O,K = input().split()
I = O*int(k)
U = K*int(O)
print(sorted([I,U])[0])

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
str1, str2 = [s for s in input().split()]
a = str1*str2;
b = str2*str2;
if a > b:
    print(a)
elif a < b:
    print(b)
else:
    print(a)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print("a*b" if a>=b else "b*a" if a<=b)

Submission status: Runtime Error

Solution code:
# -*- coding: utf-8 -*-
# 整数の入力
#a = int(input())
# スペース区切りの整数の入力
b, c = map(int, input().split())
# 文字列の入力
#s = input()
#連結
#aaa = str(b) + str(c)
#print(aaa)
aaa = ''
bbb = ''
for num in range(c):
	aaa += str(b)
	
for num in range(b):
	bbb += str(c)
#一桁目取得
testa = aaa[1]
testb = bbb[1]

# 出力
if(testa < testb):
	print(aaa)
else:
	print(bbb)

Submission status: Runtime Error

Solution code:
a=int(input())
b=int(input())
print("a*b" if a>=b else "b*a" if a=<b)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
edit
play_arrow

brightness_4
# Python 3 code to find the lexicographically 
# smallest string 
  

    # Sort strings using above compare() 
    a.sort(reverse = True) 
  
    # Concatenating sorted strings 
    answer = "" 
    for i in range( n): 
        answer += a[i] 
  
    return answer 
  
# Driver code 
if __name__ == "__main__": 
      
    a = [ "c", "cb", "cba" ] 
    n = len(a) 
    print(lexSmallest(a, n))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
num=[int(e) for e in input().split()]
A=str(num[0])
B=str(num[1])
if num[0]>=num[1]:
  for i in range(num[0]-1):
    B+=str(num[1])
  print(B)
else:
  for i in range(num[1]-1):
	A+=str(num[0])
  print(A)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

if a > b:
    ans = ''
    for target_list in range(a):
        ans = ans + str(b)

    print(ans)

if b > a:
    ans = ''
    for target_list in range(b):
        ans = ans + str(a)

    print(ans)
    

if b == a:
ans = ''
    for target_list in range(b):
        ans = ans + str(a)

    print(ans)

Submission status: Runtime Error

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

if a > b:
    ans = ''
    for target_list in range(a):
        ans = ans + str(b)

    print(ans)

if b > a:
    ans = ''
    for target_list in range(b):
        ans = ans + str(a)

    print(ans)
    

if b == a:
ans = ''
    for target_list in range(b):
        ans = ans + str(a)

    print(ans)

Submission status: Runtime Error

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

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

Submission status: Runtime Error

Solution code:
a = input("A")
b = input("B")
sumA = ""
sumB = ""

for i in range(int(b)):
    sumA +=""+str(a)

for i in range(int(a)):
    sumB +=""+str(b)

if(int(sumA)>int(sumB)):
    print(sumA)

elif(int(sumB)>int(sumA)):
    print(sumB)

elif(int(sumA) == int(sumB)):
    print(sumA)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input().split()
a = s[0]
b = s[1]
if a > b:
  for i in a
  print(b,end="")
else:
  for i in b
  print(a,end="")

Submission status: Runtime Error

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

Submission status: Runtime Error

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

res = [False for x in range(N)]
for i in range(1,N):
  if P[i-1] >= P[i] :
    res[i] = True

print(int(sum(res)+1))

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
s = input().split()
a = s[0]
b = s[1]
if a > b:
  for i in range(a)
  print(b)
else:
  for i in range(b)
  print(a)

Submission status: Runtime Error

Solution code:
Input = input().split()
Input[0] = int(Input[0])
Input[1] + int(Input[1])

if Input[0] >= Input[1]:
  print(str(Input[1])*Input[0])

else:
  print(str(Input[0])*Input[1])

Submission status: Runtime Error

Solution code:
N = int(input())
L = len(str(N))
B = int(str(N)[0])
c = 0
for i in range(1,N+1):
    I = str(i)
    l = len(I)
    a,b = int(I[0]),int(I[l-1])
    if a == 0 or b == 0:
        continue
    else:
        if a == b:
            c += 1
        for m in range(max(L-2,0)):
            c += 10**m
        if L == 1:
            continue
        if b > B:
            continue
        elif b < B:
            c += 10**(L-2)
        elif L > 2:
            c += int(str(N)[1:L-1])
        elif L == 2:
            c += 1
print(c)

Submission status: Runtime Error

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

Submission status: Runtime Error

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

res = [False for x in range(N)]
for i in range(1,N):
  if P[i-1] >= P[i] :
    res[i] = True
  
print(sum(res)+1)

Submission status: Runtime Error

Solution code:

a, b = input().split()

int_a = int(a)
int_b = int(b)

a_List = ''
b_List = ''

for i in range(int_a):
    b_List = b_List + b

for i in range(int_b):
    a_List = a_List + a


# print('a_List : ' + a_List)
# print('b_List : ' + b_List)

a_List = int(a_List)
b_List = int(b_List)

if a_List => b_List:
    print(a_List)

else:
    print(b_List)

Submission status: Runtime Error

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

res = [False for x in range(N)]
for i in range(1,N):
  if P[i-1] > P[i] :
    res[i] = True
  
print(sum(res)+1)

Submission status: Runtime Error

Solution code:


a, b = input().split()

int_a = int(a)
int_b = int(b)

a_List = ''
b_List = ''

for i in range(int_a):
    b_List = b_List + b

for i in range(int_b):
    a_List = a_List + a


print('a_List : ' + a_List)
print('b_List : ' + b_List)

# a_List = int(a_List)
# b_List = int(b_List)


if a_List => b_List:
    print(a_List)

else:
    print(b_List)

Submission status: Runtime Error

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

Submission status: Runtime Error

Solution code:
def slove(a, b):

    return min(a,b)

if __name__ == "__main__":

    a, b = inpu().split()

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