class Solution {public: vectortwoSum(vector& nums, int target) { vectorans; unordered_mapm; //建立索引表 for(int i=0;i ret(2);for(int i=0;i
class Solution {public: vectortwoSum(vector& nums, int target) { vectorans; unordered_mapm; //建立索引表 for(int i=0;i ret(2);for(int i=0;i