Submit Info #66537

Problem Lang User Status Time Memory
Associative Array pypy3 cmplxXyttmt AC 2773 ms 133.94 MiB

ケース詳細
Name Status Time Memory
2_powers_00 AC 2773 ms 127.47 MiB
example_00 AC 48 ms 29.55 MiB
many_0set_00 AC 2002 ms 102.41 MiB
many_0set_sparse_00 AC 691 ms 36.19 MiB
max_random_00 AC 1992 ms 105.42 MiB
max_random_01 AC 2052 ms 111.17 MiB
max_random_02 AC 2146 ms 117.21 MiB
random_00 AC 967 ms 75.95 MiB
random_01 AC 1084 ms 82.54 MiB
random_02 AC 1256 ms 110.81 MiB
sparse_keys_00 AC 694 ms 36.73 MiB
sparse_keys_01 AC 815 ms 39.21 MiB
unordered_map_killer_00 AC 1811 ms 127.14 MiB
unordered_map_killer_01 AC 1818 ms 133.89 MiB
unordered_map_killer_02 AC 1879 ms 133.94 MiB

from collections import defaultdict if __name__ == "__main__": n = int(input()) aa = defaultdict(lambda: 0) for _ in range(n): line = list(map(int, input().split(" "))) if line[0] == 0: aa[line[1]] = line[2] else: print(aa[line[1]])