eolymp
bolt
Try our new interface for solving problems
dərc olunub 13.01.24 14:31:01

any solution?

dərc olunub 20.02.24 12:53:16

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