s_id stringlengths 10 10 | p_id stringlengths 6 6 | u_id stringlengths 10 10 | date stringlengths 10 10 | language stringclasses 1
value | original_language stringclasses 11
values | filename_ext stringclasses 1
value | status stringclasses 1
value | cpu_time stringlengths 1 5 | memory stringlengths 1 7 | code_size stringlengths 1 6 | code stringlengths 1 539k |
|---|---|---|---|---|---|---|---|---|---|---|---|
s076042375 | p03486 | u058592821 | 1590980049 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | s = input()
t = input()
s.sort()
t.sort(reverse=True)
s = ''.join(s)
t = ''.join(t)
if s < t:
print('Yes')
else:
print('No')
|
s930135220 | p03486 | u912650255 | 1590975187 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 154 | N = int(input())
A = list(map(int,input().split()))
ans = 1
for i in A:
ans *= i
if ans < 1000000000000000000:
print(ans)
else:
print('-1') |
s451312809 | p03486 | u063614215 | 1590961375 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 348 | alpha = list('abcdefghijklmnopqrstuvwxyz')
s = list(input())
t = list(input())
s_index = []
t_index = []
for i in s:
s_index.append(alpha.index(s))
for i in t:
t_index.append(alpha.index(t))
if min(s_index)<max(t_index):
print('Yes')
elif min(s_index)>max(t_index):
print('No')
else:
if len(s_index)<len(t_... |
s469761559 | p03486 | u285891772 | 1590792154 | Python | Python (3.4.3) | py | Runtime Error | 38 | 5200 | 1097 | import sys, re
from collections import deque, defaultdict, Counter
from math import ceil, sqrt, hypot, factorial, pi, sin, cos, radians#, log2
from itertools import accumulate, permutations, combinations, combinations_with_replacement, product, groupby
from operator import itemgetter, mul
from copy import deepcopy, cop... |
s768374873 | p03486 | u600261652 | 1590703969 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 67 | s = input()
t = sorted(input())[::-1]
print("Yes" if s<t else "No") |
s686752987 | p03486 | u601575292 | 1590545359 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 105 | s = input()
t = input()
s = sorted(s)
t = reversed(t)
if s < t:
print('Yes')
else:
print('No') |
s273362547 | p03486 | u057415180 | 1590531520 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 326 | s = input()
t = input()
n = len(s)
m = len(t)
ss = [s[i] for i in range(n)]
tt = [t[i] for i in range(m)]
ss.sort()
tt.sort(reverse=True)
for i in range(n):
if ss[i] < tt[i]:
print('Yes')
exit()
elif ss[i] > tt[i]:
print('No')
exit()
if n < m:
print('Yes')
else:
print(... |
s302534587 | p03486 | u498575211 | 1590373264 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3064 | 255 | a = sorted(input(), reverse=True)
b = sorted(input(), reverse=True)
aa = ''.join(a)
bb = ''.join(b)
ans = 'No'
for i in range(len(aa)):
if aa[i] == bb[i]: continue
if aa[i] < bb[i]:
ans = 'Yes'
break
else:
ans = 'No'
break
print(ans) |
s107731304 | p03486 | u498575211 | 1590373165 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 240 | a = sorted(input(), reverse=True)
b = sorted(input(), reverse=True)
aa = ''.join(a)
bb = ''.join(b)
ans = 'Yes'
for i in range(len(aa)):
if aa[i] == bb[i]: continue
if aa[i] < bb[i]:
break
else:
ans = 'No'
break
print(ans) |
s846058175 | p03486 | u344065503 | 1590265074 | Python | PyPy3 (2.4.0) | py | Runtime Error | 170 | 38256 | 92 | s=sorter(input())
t=sorted(input(),reverse=True)
if s<t:
print("Yes")
else:
print("No")
|
s776854985 | p03486 | u593567568 | 1590093922 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 349 | S = list(input())
T = list(input())
S = [ord(s) for s in S]
T = [ord(s) for s in T]
S.sort()
T.sort(reverse=True)
LS = len(S)
LT = len(T)
ok = False
for i in range(min(LS,LT)):
s = S[i]
t = T[i]
if s < t:
ok = True
break
elif s == t:
continue
else t < s:
ok = False
break
if ok:
prin... |
s242185061 | p03486 | u381282312 | 1589476775 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 151 | s = input()
s_asc = ''.join(sorted(s))
t = input8)
t_desc = ''.join(sorted(t, reverse=True))
if s_asc < t_desc:
print('Yes')
else:
print('No') |
s336998904 | p03486 | u941047297 | 1589235755 | Python | PyPy3 (2.4.0) | py | Runtime Error | 164 | 38384 | 363 | s = list(input())
t = list(input())
s_uni = sorted([ord(i) for i in s])
t_uni = sorted([ord(i) for i in t], reverse = True)
for i in range(len(s)):
if s_uni[i] < t_uni[i]:
print('Yes')
exit()
elif s_uni[i] == t_uni[i]:
continue
else:
print('No')
exit()
if len(s) < len... |
s642199398 | p03486 | u135116520 | 1588628739 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 144 | s=input()
t=input()
s_=sorted(s,reverse=True)
t_=sorted(t)
A.append(s_)
A.append(t_)
B=sorted(A)
if B[0]=s_t:
print("Yes")
else:
print("No") |
s182973912 | p03486 | u025501820 | 1588622590 | Python | Python (3.4.3) | py | Runtime Error | 21 | 3316 | 575 | from collections import Counter
s = input()
t = input()
s_cnt = sorted(Counter(s).most_common())
t_cnt = sorted(Counter(t).most_common())[::-1]
s_replaced = ""
t_replaced = ""
for k, v in s_cnt:
s_replaced += k * v
for k, v in t_cnt:
t_replaced += k * v
def judge(s, t):
for i in range(len(s)):
if... |
s412198731 | p03486 | u503227287 | 1588550525 | Python | PyPy3 (2.4.0) | py | Runtime Error | 169 | 38384 | 659 | from sys import stdin
if __name__ == "__main__":
_in = [_.rstrip() for _ in stdin.readlines()]
s = _in[0] # type:str
t = _in[1] # type:str
# vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
s_arr = [_s for _s in s]
t_arr = [_t for _t in t]
s_arr.sort()
t_arr.sort(reverse... |
s265822735 | p03486 | u429029348 | 1588531108 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 91 | s'=sorted(input())
t'=sorted(input())
if s'<t':
ans="Yes"
else:
ans="No"
print(ans) |
s778388025 | p03486 | u637918426 | 1588483119 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 549 | s = sorted(list(input()))
t = sorted(list(input()), reverse = True)
Alpha = ['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']
for i in range(len(s)+1):
if i == len(s):
if len(t) > len(s):
print('Yes')
... |
s225102612 | p03486 | u863044225 | 1588036328 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 89 | s=''.join(sorted(input()))
t=''.joinsorted(input(),reverse=True))
print('YNeos'[s>=t::2]) |
s713630801 | p03486 | u024340351 | 1588036278 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 383 | s= str(input())
t= str(input())
S = ['a']*len(s)
T = ['a']*len(t)
for i in range (0, len(s)):
S[i]=ord(s[i])
for i in range (0, len(t)):
T[i]=ord(t[i])
S = sorted(S)
T = sorted(T, reverse=True)
check = 0
for i in range (0, len(s)):
if S[i] < T[i]:
print('Yes')
exit()
elif S[i] == T[i]:
check+=1
if chec... |
s743637024 | p03486 | u383450070 | 1587997278 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | a = str(input())
b = str(input())
a.sort()
b.sort()
if a < b:
print("Yes")
else:
print("No") |
s535988423 | p03486 | u383450070 | 1587997260 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 97 | a = str(input())
b = str(input())
a.sort()
b.sort()
if a <= b:
print("Yes")
else:
print("No") |
s495178754 | p03486 | u989306199 | 1587924497 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 84 | S = sorted(input())
T = sorted(input(), reversed=True)
print('Yes' if S<T else 'No') |
s959985909 | p03486 | u021548497 | 1587763882 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 294 | s = input()
t = input()
letters_s = []
letters_t = []
for i in range(len(s)):
letters_s.append(s[i])
letters_s.sort()
for i in range(len(t)):
letters_t.append(len(t))
letters_t.sort(reverse=True)
ss = "".join(letters_s)
tt = "".join(letters_t)
if ss < tt:
print("Yes")
else:
print("No") |
s184907792 | p03486 | u375616706 | 1587679311 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | S=input()
T=input()
S ="".join(sorted(S))
T="".join(sorted(T,reversed=True))
if S<=T:
print("Yes")
else:
print("No") |
s569206863 | p03486 | u835283937 | 1587249322 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 364 | def main():
s = list(input())
t = list(input())
s = sorted(s)
t = sorted(t)
ind = 0
for i in range(len(s)):
if s[i] == t[i]:
ind = i
shrt = False
for i in range(ind, len(t)):
if s[0] < t[i]:
shrt = True
break
if shrt :
print... |
s228965047 | p03486 | u506549878 | 1586868649 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 166 | s = sorted(list(str(input())))
t = reversed(sorted(list(str(input())))
S = str()
T = str()
for i in s:
S += i
for k in t:
T += k
print('Yes' if S<T else 'No') |
s096368867 | p03486 | u581603131 | 1586837154 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | s = sorted(input())
t = sorted(input()).reverse()
print('Yes' if s<t else 'No') |
s281380116 | p03486 | u581603131 | 1586837105 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 79 | s = sorted(input())
t = reversed(sorted(input()))
print('Yes' if s<t else 'No') |
s520435158 | p03486 | u581603131 | 1586837036 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | s = sorted(list(str(input())))
t = reversed(sorted(list(str(input()))))
print('Yes' if s<t else 'No') |
s059825037 | p03486 | u179750651 | 1586733847 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 81 | s=input().sorted()
t=input().sorted()
if a>b:
print('Yes')
else:
print('No')
|
s296542940 | p03486 | u179750651 | 1586733779 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 66 | s=sorted(s)
t=sorted(t)
if a>b:
print('Yes')
else:
print('No') |
s261146647 | p03486 | u504335849 | 1586649110 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 174 | s = list(input())
t = list(input())
s.sort()
t.sort()
for s_, t_ in zip(s,t):
if s_ < t_ :
print('Yes')
sys.exit()
if len(s) < len(t):
print('Yes')
else:
print('No') |
s119799517 | p03486 | u007263493 | 1586645592 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 124 | s = input()
t = input()
S = ''join(sorted(list(s)))
T = ''join(sorted(list(t),reverse=True))
print('Yes' if S<T else 'No') |
s061082724 | p03486 | u496821919 | 1586640737 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 652 | a = list(input())
b = list(input())
a.sort()
b.sort(reverse=True)
for i in range(int(len(b))):
c =(a[i],b[i])
d = sorted(c)
if i != int(len(b))-1:
if a[i] == b[i]:
continue
elif c == d and a[i] != b[i]:
print("No")
break
else:
print(... |
s762714918 | p03486 | u496821919 | 1586640279 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 652 | a = list(input())
b = list(input())
a.sort()
b.sort(reverse=True)
for i in range(int(len(b))):
c =(a[i],b[i])
d = sorted(c)
if i != int(len(b))-1:
if a[i] == b[i]:
continue
elif c == d and a[i] != b[i]:
print("Yes")
break
else:
print... |
s806353199 | p03486 | u440161695 | 1586444377 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 71 | print("Yes" if sorted(input())<sorted(input(),reversed=True) else "No") |
s393736632 | p03486 | u755180064 | 1586324226 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 421 | url = "https://atcoder.jp/contests/abc082/tasks/abc082_b"
def main():
s1, s2 = [input() for i in range(2)]
l1 = sorted(list(s1))
l2 = sorted(list(s2), reverse=True)
for i in range(len(l1)):
if l1[i] < l2[i]:
print('Yes')
exit()
if len(l1) < len(l2) and l1[-1] <= l2[... |
s108676116 | p03486 | u463775490 | 1585617812 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 270 | s = sorted(input())
t = sorted(input(), reverse=True)
for i in range(len(s)):
if ord(s[i]) < ord(t[i]):
print('Yes')
exit()
elif ord(s[i]) > ord(t[i]):
print('No')
exit()
if len(s) < len(t):
print('Yes')
else:
print('No') |
s744076586 | p03486 | u375695365 | 1585373839 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 269 | s=list(str(input()))
t=list(str(input()))
s.sort()
t.sort()
#print(s,t)
for i in range(min(len(s),len(t))):
if s[i]>t[i]:
print("Yes")
exit()
elif s[i]<t[i]:
print("No")
exit()
if len(s)<t:
print("Yes")
else:
print("No") |
s172411956 | p03486 | u375695365 | 1585373762 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 269 | s=list(str(input()))
t=list(str(input()))
s.sort()
t.sort()
#print(s,t)
for i in range(min(len(s),len(t))):
if s[i]<t[i]:
print("Yes")
exit()
elif s[i]>t[i]:
print("No")
exit()
if len(s)<t:
print("Yes")
else:
print("No") |
s001445988 | p03486 | u168778320 | 1584575915 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 121 | s = input()
s.sort()
t= input()
t.sort()
t = ''.join(reversed(list(t)))
if s < t:
print('Yes')
else:
print('No') |
s297146699 | p03486 | u246809151 | 1584019159 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 119 | s = input()
t = input()
s1 = s.sort()
t1 = t.sort(reserve = True)
if s1 < t1:
print('Yes')
else:
print('No')
|
s910840569 | p03486 | u440975163 | 1583195199 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 360 | import sys
s = sorted(list(str(input())))
t = sorted(list(str(input())), reverse = True)
x = 0
y = 0
for i in range(len(s)):
if s[i] < t[i]:
print('Yes')
sys.exit()
if s[i] > t[i]:
print('No')
sys.exit()
if s == t[:len(s)] and len(s) < len(t):
print('Yes')
elif s == t[:len(s... |
s849662643 | p03486 | u440975163 | 1583194903 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 303 | import sys
s = sorted(list(str(input())))
t = sorted(list(str(input())), reverse = True)
x = 0
y = 0
for i in range(len(s)):
if s[i] < t[i]:
print('Yes')
sys.exit()
if s[i] == t[i]:
x += 1
if x == len(s) and len(s) < len(t):
print('Yes')
elif s == t:
print('No') |
s822148962 | p03486 | u440975163 | 1583194646 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 346 | s = sorted(list(str(input())))
t = sorted(list(str(input())), reverse = True)
x = 0
y = 0
for i in range(len(s)):
if s[i] < t[i]:
print('Yes')
break
if s[i] == t[i]:
x += 1
else:
y += 1
if x == len(s) and len(s) < len(t):
print('Yes')
elif s == t:
print('No')
elif y ... |
s023572531 | p03486 | u440975163 | 1583194431 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3188 | 336 | s = sorted(list(str(input())))
t = sorted(list(str(input())), reverse = True)
x = 0
y = 0
for i in range(len(s)):
if s[i] < t[i]:
print('Yes')
break
if s[i] == t[i]:
x += 1
if x == len(s) and len(s) < len(t):
print('Yes')
break
else:
y += 1
if y == len(s):... |
s462376267 | p03486 | u968649733 | 1583174913 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 275 | S, T = [input() for _ in range(2)]
S = sorted(S)
T = sorted(T)
print(S,T)
flg = False
if len(S) < len(T):
flg =True
if len(S) == len(T):
for i in range(len(S)):
if T[i] > s[i]:
print("T>S")
flg =True
if flg:
print('Yes')
else:
print('No') |
s019447819 | p03486 | u968649733 | 1583174483 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 374 | S, T = [input() for _ in range(2)]
S = sorted(S)
T = sorted(T)
print(S,T)
flg = False
if len(S) < len(T):
for i, s in enumerate(S):
print(T[i], s)
if T[i] <= s:
#print("T>S")
flg = True
if len(S) == len(T):
for i, s in enumerate(S):
if T[i] < s[i]:
#print("T>S")
flg... |
s962662603 | p03486 | u829796346 | 1582973831 | Python | Python (3.4.3) | py | Runtime Error | 18 | 2940 | 105 | s = sorted(int(input()))
t = sorted(int(input()),reverse=True)
if s<t:
print("Yes")
else:
print("No") |
s224732655 | p03486 | u698919163 | 1582944040 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 391 | s = input()
t = input()
sorted_s = sorted(s)
sorted_t = sorted(t,reverse=True)
import sys
N = max(len(sorted_s),len(sorted_t))
for i in range(N):
if ord(sorted_s[i]) < ord(sorted_t[i]):
print('Yes')
sys.exit()
elif ord(sorted_s[i]) > ord(sorted_t[i]):
print('No')
sys.exit()
i... |
s196049923 | p03486 | u698919163 | 1582943941 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 452 | s = input()
t = input()
sorted_s = sorted(s)
sorted_t = sorted(t,reverse=True)
import sys
N = max(len(sorted_s),len(sorted_t))
for i in range(N):
if ord(sorted_s[i]) < ord(sorted_t[i]):
print('Yes')
sys.exit()
elif ord(sorted_s[i]) > ord(sorted_t[i]):
print('No')
sys.exit()
i... |
s510876741 | p03486 | u863442865 | 1582516113 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | s = input()
s.sort()
t = input()
t.sort(reverse=True)
if s<t:
print('Yes')
else:
print('No')
|
s664631843 | p03486 | u863442865 | 1582516046 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 108 | s = input()
s = s.sort()
t = input()
t = t.sort(reverse=True)
if s<t:
print('Yes')
else:
print('No') |
s240290349 | p03486 | u863442865 | 1582516021 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 96 | s = input().sort()
t = input().sort(reverse=True)
if s<t:
print('Yes')
else:
print('No') |
s425698423 | p03486 | u607074939 | 1582251828 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 101 | s = str(input())
t = str(input())
s.sort()
t.sort()
if(s < t):
print('Yes')
else:
print('No') |
s036106159 | p03486 | u747703115 | 1581864030 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 338 | s = sorted(input())
t = sorted(input(), reverse=True)
alf = 'abcdefghijklmnopqrstuvwxyz'
r = 'No'
if len(s)<len(t) and s==t[len(s):]:
r = 'Yes'
for i in range(len(s)):
si = alf.index(s[i])
ti = alf.index(t[i])
if si < ti:
r = 'Yes'
break
elif si == ti:
continue
else:
... |
s792425313 | p03486 | u757030836 | 1581810074 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 130 | s = ''.join(sorted(list(input())))
t = ''.join(sorte(list(input()),reverse = True))
is s < t:
print("Yes")
else:
print("No")
|
s593744484 | p03486 | u757030836 | 1581810013 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 129 | s = "".join(sorted(list(input())))
t = "".join(sorte(list(input()),reverse = True))
is s < t:
print("Yes")
else:
print("No") |
s599054486 | p03486 | u243535639 | 1581744558 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 283 | s = sorted(input())
t = sorted(input(), reverse=True)
ans = "Yes"
if s == t:
ans = "No"
else:
for i in range(len(s)):
if s[i] == t[i]:
continue
elif s[i] < t[i]:
break
else:
ans = "No"
break
print(ans) |
s067622273 | p03486 | u796708718 | 1581265306 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 94 | s = list(input()).sort()
t = list(input()).sort()
if s < t
print("Yes")
else:
print("No") |
s963806100 | p03486 | u541610817 | 1581214413 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 446 | def qsort(array):
if len(array) < 2:
return array
else:
pivot = array[0]
less = [i for i in array[1:] if i <= pivot]
greater = [i for i in array[1:] if i > pivot]
return qsort(less) + [pivot] + qsort(greater)
si = input()
ti = input()
s_sort = qsort(si)
t_sort = qsor... |
s117833919 | p03486 | u368796742 | 1580791157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 111 | a = list(input())
b = list(input())
a.sort()
b.sort(reverse = True)
if a < b:
print("Yes")
else:
print("No) |
s907513249 | p03486 | u361826811 | 1580313537 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 336 | """
author : halo2halo
date : 29, Jan, 2020
"""
import sys
# import itertools
# import numpy as np
read = sys.stdin.buffer.read
readline = sys.stdin.buffer.readline
readlines = sys.stdin.buffer.readlines
sys.setrecursionlimit(10 ** 7)
s, t = readline().decode('utf8').split()
s.sort()
t.sort()
print('Yes' if s < t[:... |
s463497705 | p03486 | u686036872 | 1580016794 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 90 | s = input()
t = input()
s.sort()
t.sort()
if s < t:
print("Yes")
else:
print("No") |
s598058869 | p03486 | u409757418 | 1579884732 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3064 | 861 | m = 0
if len(ss) <= len(ts):
m = len(ss)
l = 0
for j in range(m):
if alph.index(ss[j]) < alph.index(ts[j]):
print("Yes")
break
elif alph.index(ss[j]) == alph.index(ts[j]) :
if j == m -1:
print("Yes")
else:
pass
else:
print("No")
break
elif len(ss) ==... |
s467696034 | p03486 | u189385406 | 1578632675 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 200 | s = sorted(input())
z = sorted(input()), reverse=True
c=len(s) if len(s) <= len(z) else =len(z)
for a in range(c):
if s[a] > z[a]:
print('No')
exit()
if len(s) == len(z):
print('Yes')
|
s882876290 | p03486 | u561883765 | 1578545080 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 184 | s,t = list(input()),list(input())
s.sort()
t.sort(reverse=True)
count = 0
while count < len(s):
if t[count] > s[count]:
print("Yes")
exit()
else:
count += 1
print("No") |
s701471930 | p03486 | u561883765 | 1578544994 | Python | Python (3.4.3) | py | Runtime Error | 18 | 3060 | 180 | s,t = list(input()),list(input())
s.sort()
t.sort(reverse=True)
count = 0
while count < len(s):
if t[count] > s[0]:
print("Yes")
exit()
else:
count += 1
print("No") |
s804213311 | p03486 | u735008991 | 1578099157 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | s = sorted(input())
t = sorted(input()).reverse()
print("Yes" if s < t else "No")
|
s104220666 | p03486 | u735008991 | 1578099102 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 120 | s = sorted([char for char in input()])
t = sorted([char for char in input()]).reverse()
print("Yes" if s < t else "No")
|
s225869548 | p03486 | u735008991 | 1578098850 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 134 | s = sorted(list(map(str, input().split(""))))
t = sorted(list(map(str, input().split("")))).reverse()
print("Yes" if s < t else "No")
|
s639578838 | p03486 | u735008991 | 1578098699 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 82 | s = sorted(input())
t = sorted(input()).reverse()
print("Yes" if s < t else "No")
|
s794193965 | p03486 | u089142196 | 1577847409 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 140 | s=input()
t=input()
s.sort()
t.sort()
if s==t:
print("No")
else:
u=[s,t].sort()
if u[0]==s:
print("Yes")
else:
print("No") |
s260973926 | p03486 | u431981421 | 1577662059 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 146 | s=input()
t=input()
ss = sorted(s)
tt = sorted(t)
ans = "No"
for i in range(len(ss)):
if ss[i] < tt[i]:
ans = "Yes"
break
print(ans) |
s649784028 | p03486 | u684305751 | 1577621322 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 80 | print("Yes" if print(sorted(input())) < print(sorted(input())[::-1]) else "No")
|
s569505523 | p03486 | u609061751 | 1577373854 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 446 | import sys
input = sys.stdin.readline
s = list(input())
t = list(input())
s = sorted(s)
t = sorted(t, reverse=True)
alpha2num = lambda c: ord(c) - ord("a")
if s == t:
print("No")
sys.exit()
for i in range(min(len(s), len(t))):
x, y = s[i], t[j]
if alpha2num(x) < alpha2num(y):
print("Yes")
... |
s392864696 | p03486 | u609061751 | 1577373770 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 424 | import sys
input = sys.stdin.readline
s = list(input())
t = list(input())
s = sorted(s)
t = sorted(t, reverse=True)
alpha2num = lambda c: ord(c) - ord("a")
if s == t:
print("No")
sys.exit()
for i in range(min(len(s), len(t))):
if alpha2num(i) < alpha2num(j):
print("Yes")
sys.exit()
elif ... |
s493116880 | p03486 | u609814378 | 1577234100 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1 | b |
s171053558 | p03486 | u311669106 | 1576522931 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 103 | s=input().sort()
t=input().sort()
for x,y in s,t:
if x>y:
print("Yes")
break
print("No") |
s671416372 | p03486 | u965436898 | 1576166151 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 385 | s = sorted(input())
t = sorted(input(),reverse=True)
ans = ""
def check_dict():
for i in range(len(s)):
if s[i] < t[i]:
ans = "Yes"
return ans
elif s[i] > t[i]:
ans = "No"
return ans
return ""
if len(s) < len(t):
ans = check_dict()
if ans == "":
ans = "Yes"
print(ans)
else:... |
s482460099 | p03486 | u796789068 | 1576098425 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 347 | s = input()
t = input()
s = sorted(s)
t = sorted(t)
# print(s,t)
if s == [] and t == []:
print('No')
exit()
elif s == []:
print('Yes')
elif t == []:
print('No')
if s[0] < t[-1]:
print('Yes')
exit()
elif s[0] > t[-1]:
print('No')
exit()
elif len(s) < len(x):
print('Yes')
ex... |
s304767159 | p03486 | u796789068 | 1576098300 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3060 | 231 | s = input()
t = input()
s = sorted(s)
t = sorted(t)
# print(s,t)
if s[0] < t[-1]:
print('Yes')
exit()
elif s[0] > t[-1]:
print('No')
exit()
elif len(s) < len(x):
print('Yes')
exit()
else:
print('No')
|
s158168322 | p03486 | u226912938 | 1576095555 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 337 | s = str(input())
t = str(input())
S = []
T = []
for i in s:
S.append(ord(i))
for j in t:
T.append(ord(j))
S = sorted(S)
T = sorted(T, reverse=True)
ans = 'Yes'
for n in range(len(S)):
if S[n] < T[n]:
break
elif S[n] == T[n]:
continue
else:
ans = 'No'
if S == T:
ans =... |
s731871804 | p03486 | u905582793 | 1575612182 | Python | Python (3.4.3) | py | Runtime Error | 19 | 3060 | 92 | s=input()
t=input()
s.sort()
t.sort(reverse=True)
if s>t:
print("No")
else:
print("Yes") |
s847380640 | p03486 | u027929618 | 1574398214 | Python | Python (3.4.3) | py | Runtime Error | 25 | 3772 | 266 | import string
s=input()
t=input()
a=string.ascii_lowercase
cnt1=0
for i in range(len(s)):
n = a.find(s[i])
if cnt1 < n:
cnt1 = n
cnt2=0
for i in range(len(t)):
n = a.find(s[i])
if cnt2 < n:
cnt2 = n
if cnt1 < cnt2:
print("Yes")
else:
print("No") |
s557376053 | p03486 | u187109555 | 1573919730 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 275 | s = input()
t = input()
sorted_s = sorted(s)
sorted_t = sorted(t, reverse=True)
len_s = len(sorted_s)
flag = 0
for i in range(len_s):
s_i = sorted_s[i]
t_i = sorted_t[i]
if s_i < t_i:
flag = 1
break
if flag:
print("Yes")
else:
print("No") |
s909927967 | p03486 | u187109555 | 1573919698 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 251 | sorted_s = sorted(s)
sorted_t = sorted(t, reverse=True)
len_s = len(sorted_s)
flag = 0
for i in range(len_s):
s_i = sorted_s[i]
t_i = sorted_t[i]
if s_i < t_i:
flag = 1
break
if flag:
print("Yes")
else:
print("No") |
s092847029 | p03486 | u577138895 | 1572311417 | Python | PyPy3 (2.4.0) | py | Runtime Error | 182 | 38640 | 337 | S = sorted(list(map(str, input())))
T = sorted(list(map(str, input())), reverse = True)
len = min(len(S), len(T))
flg = 2
for i in range(len):
if S[i] < T[i]:
flg = 1
break
elif S[i] > T[i]:
flg = 0
break
if flg == 1:
print("Yes")
elif flg == 0:
print("No")
else:
if len(S) < len(T):
print("Yes")
el... |
s482863787 | p03486 | u577138895 | 1572277524 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38256 | 350 | S = sorted(list(map(str, input())))
T = sorted(list(map(str, input())), reverse = True)
len = min(len(S), len(T))
print(S, T)
flg = 2
for i in range(len):
if S[i] < T[i]:
flg = 1
break
elif S[i] > T[i]:
flg = 0
break
if flg == 1:
print("Yes")
elif flg == 0:
print("No")
else:
if len(S) <= len(T):
pri... |
s766952224 | p03486 | u481250941 | 1571795554 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 1580 | #
# abc082 b
#
import unittest
from io import StringIO
import sys
def input():
return sys.stdin.readline().rstrip()
def resolve():
s = list(input())
t = list(input())
flag = False
s = sorted(s, reverse=True)
t = sorted(t, reverse=True)
for i in range(min(len(s), len(t)):
if s[i]... |
s709151668 | p03486 | u481250941 | 1571795404 | Python | Python (3.4.3) | py | Runtime Error | 44 | 5696 | 1568 | #
# abc082 b
#
import unittest
from io import StringIO
import sys
def input():
return sys.stdin.readline().rstrip()
def resolve():
s = list(input())
t = list(input())
flag = False
s = sorted(s, reverse=True)
t = sorted(t, reverse=True)
for i in range(len(s)):
if s[i] < t[i]:
... |
s571180430 | p03486 | u997346103 | 1571518466 | Python | PyPy3 (2.4.0) | py | Runtime Error | 171 | 38256 | 143 | s = list(input())
t = list(input())
s.sort()
s=''.join(s)
s.sort()
t.reverse()
t=''.join(t)
if s < t:
print('Yes')
else:
print('No') |
s514974495 | p03486 | u997346103 | 1571518218 | Python | PyPy3 (2.4.0) | py | Runtime Error | 174 | 38512 | 135 | s = list(input())
t = list(input())
s.sort()
s=''.join(s)
t.reverse()
t=''.join(t)
if s =< t:
print('Yes')
else:
print('No') |
s807414435 | p03486 | u351914601 | 1571269159 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 92 | s = [*input()]
t = [*input()]
s.sort()
t.sort()
t.reverse()
print("Yes" if s < t else "No")
|
s547293886 | p03486 | u687159441 | 1569973463 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 726 | s = input()
t = input()
s = list(s)
t = list(t)
s.sort(reverse=True)
s_final = s[-1]
s_semifinal = s[-2]
s_len = len(s)
t.sort(reverse=True)
t_first = t[0]
t_second = t[1]
t_len = len(t)
alpha = ['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... |
s735797966 | p03486 | u482808969 | 1568658072 | Python | PyPy3 (2.4.0) | py | Runtime Error | 181 | 38384 | 261 | import sys
s = sorted(input())
t = sorted(input())[::-1]
for i in range(len(s)):
if s[i] < t[i]:
print("Yes")
sys.exit()
elif s[i] > t[i]:
print("No")
sys.exit()
if len(t) > len(s):
print("Yes")
else:
print("No") |
s375520026 | p03486 | u518987899 | 1568434171 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 115 | S = ''.join(sorted(input.strip()))
T = ''.join(sorted(input.strip(),reverse=True))
print('Yes' if S < T else 'No')
|
s412065857 | p03486 | u474925961 | 1568322654 | Python | Python (3.4.3) | py | Runtime Error | 17 | 3064 | 359 | import sys
if sys.platform =='ios':
sys.stdin=open('input_file.txt')
a=input()
b=input()
a=sorted(a)
b=sorted(b)
if a==b:
print("No")
sys.exit()
for i in range(min(len(a),len(b))):
if a[i]<b[-(i+1)]:
print("Yes")
break
elif a[i]==b[-(i+1)]:
continue
else:
print("No")
break
if len(a)<len(... |
s280328420 | p03486 | u317710033 | 1568056617 | Python | Python (3.4.3) | py | Runtime Error | 17 | 2940 | 181 | def a():
s = input()
t = input()
s = ''.join(sorted(s))
t = ''.join(sorted(t, reverse = True)
if s < t :
print('Yes')
else:
print('No')
return 0
a() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.