是
for(vector<int>::iterator it=w.begin();it!=w.end();it++)
遍历效率高还是
int s=w.size(); for(int i=0;i<s;i++)
效率高 (最近经常莫名其妙玄学卡常)