Submit Info #64736

Problem Lang User Status Time Memory
Associative Array python3 (anonymous) AC 1944 ms 59.73 MiB

ケース詳細
Name Status Time Memory
2_powers_00 AC 1944 ms 59.63 MiB
example_00 AC 15 ms 3.52 MiB
many_0set_00 AC 1806 ms 34.25 MiB
many_0set_sparse_00 AC 651 ms 8.50 MiB
max_random_00 AC 1932 ms 41.32 MiB
max_random_01 AC 1858 ms 42.12 MiB
max_random_02 AC 1816 ms 42.91 MiB
random_00 AC 693 ms 20.92 MiB
random_01 AC 831 ms 31.25 MiB
random_02 AC 1021 ms 32.66 MiB
sparse_keys_00 AC 662 ms 11.64 MiB
sparse_keys_01 AC 792 ms 13.13 MiB
unordered_map_killer_00 AC 1645 ms 59.67 MiB
unordered_map_killer_01 AC 1669 ms 59.68 MiB
unordered_map_killer_02 AC 1658 ms 59.73 MiB

placehold = {} output = [] numQueries = int(input()) for i in range(numQueries): query = [int(x) for x in input().split()] if query[0] == 0: placehold[query[1]] = query[2] else: if query[1] in placehold.keys(): output.append(placehold[query[1]]) else: output.append(0) for i in output: print(i)