请问使用 map、 unordered_map 或 __gnu_pbds::cc_hash_table 以避免在数组中添加偏移量是否是一种愚蠢的做法?
map
unordered_map
__gnu_pbds::cc_hash_table
实测平板电视可以在不开 O2 的情况下 AC,开 O2 甚至接近数组的运行时间