Skip to content

Instantly share code, notes, and snippets.

@modos
Created July 17, 2023 05:25
Show Gist options
  • Save modos/2db9c075e90cbe6479cbd3c988ac4724 to your computer and use it in GitHub Desktop.
Save modos/2db9c075e90cbe6479cbd3c988ac4724 to your computer and use it in GitHub Desktop.
کدتخفیف
def main():
num_of_codes, valid_code = input().split()
valid_chars = set(valid_code)
for i in range(int(num_of_codes)):
code_chars = set(input())
is_valid = code_chars == valid_chars
if is_valid:
print("Yes")
else:
print("No")
if __name__ == '__main__':
main()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment