第二题用hashmap,键为int值,值为该int值所在的hashset,map<integer,set<integer>>,这种思路应该也可以吧