Skip to content

Instantly share code, notes, and snippets.

@josinovmota
Created February 14, 2025 00:24
Show Gist options
  • Save josinovmota/0b996c837f4d304a2b7287c430875610 to your computer and use it in GitHub Desktop.
Save josinovmota/0b996c837f4d304a2b7287c430875610 to your computer and use it in GitHub Desktop.
# 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