Problems
193
any solution?
a = input()
b = input()
a1 = {} b1 = {}
for i in a:
a1[i] = a1.get(i, 0) + 1
for i in b:
b1[i] = b1.get(i, 0) + 1
for i, c in b1.items():
if i not in a1 or a1[i] < c:
print("No")
exit()
print("Ok")
any solution?
a = input()
b = input()
a1 = {} b1 = {}
for i in a:
a1[i] = a1.get(i, 0) + 1
for i in b:
b1[i] = b1.get(i, 0) + 1
for i, c in b1.items():
if i not in a1 or a1[i] < c:
print("No")
exit()
print("Ok")