vector<int>::iterator result = find( L.begin( ), L.end( ), 1 ); //查找1
if ( result == L.end( ) ) //没找到
cout << "No" << endl;
else //找到
cout << "Yes" << endl;
}
vector<int>::iterator result = find( L.begin( ), L.end( ), 1 ); //查找1
if ( result == L.end( ) ) //没找到
cout << "No" << endl;
else //找到
cout << "Yes" << endl;
}