不要开long long开unsigned int 就能存下,而且速度更快。
long long
unsigned int
用map存放数据而不是列表,否则会MLE
map
MLE
O₂
多测清空(map.clear())
map.clear()