Submit Info #64420

Problem Lang User Status Time Memory
Associative Array pypy3 mrng AC 912 ms 124.96 MiB

ケース詳細
Name Status Time Memory
2_powers_00 AC 912 ms 124.54 MiB
example_00 AC 49 ms 29.54 MiB
many_0set_00 AC 776 ms 91.11 MiB
many_0set_sparse_00 AC 254 ms 35.71 MiB
max_random_00 AC 791 ms 91.84 MiB
max_random_01 AC 819 ms 96.25 MiB
max_random_02 AC 776 ms 101.27 MiB
random_00 AC 335 ms 60.42 MiB
random_01 AC 396 ms 65.95 MiB
random_02 AC 480 ms 78.65 MiB
sparse_keys_00 AC 283 ms 36.34 MiB
sparse_keys_01 AC 312 ms 37.06 MiB
unordered_map_killer_00 AC 636 ms 124.59 MiB
unordered_map_killer_01 AC 631 ms 124.91 MiB
unordered_map_killer_02 AC 639 ms 124.96 MiB

import sys input = sys.stdin.buffer.readline d = dict() for _ in range(int(input())): q = list(map(int,input().split())) if q[0]==0: c,k,v = q else: c,k = q if c==0: d[k] = v else: print(0 if d.get(k) is None else d[k])