Advertisement
notleo

Untitled

Oct 29th, 2019
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.40 KB | None | 0 0
  1. vezes = int(input())
  2.  
  3. for c in range(vezes):
  4.     string = []
  5.     dieta = input()
  6.     dieta = list(dieta)
  7.     dieta = ''.join(sorted(dieta))
  8.     manha = input()
  9.     almoç = input()
  10.     manhalmoço = list(manha+almoç)
  11.     manhalmoço = ''.join(sorted(manhalmoço))
  12.  
  13.     for letra in dieta:
  14.         if letra not in manhalmoço:
  15.             string += letra
  16.  
  17.     print(''.join(sorted(string)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement