Created
February 14, 2025 00:24
-
-
Save josinovmota/0b996c837f4d304a2b7287c430875610 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Enter your code here. Read input from STDIN. Print output to STDOUT | |
dicionario = {} | |
dictmaker = list() | |
t = int(input()) | |
for i in range(0,t): | |
dictmaker = input().strip().split() | |
dicionario[dictmaker[0]] = dictmaker[1] | |
chaves_dicionario = dicionario.keys() | |
# for i in range(0,t): | |
# nome = input() | |
# if nome in chaves_dicionario: | |
# print(f'{nome}={dicionario[nome]}') | |
# else: | |
# print('Not found') | |
try: | |
while True: | |
nome = input() | |
if nome in chaves_dicionario: | |
print(f'{nome}={dicionario[nome]}') | |
else: | |
print('Not found') | |
except EOFError: | |
pass |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment